{"repo":"imjoseangel/fastapi-keycloak","free":true,"listed":false,"github":"https://github.com/imjoseangel/fastapi-keycloak","clone":"git clone https://github.com/imjoseangel/fastapi-keycloak.git","description":"This project demonstrates how to integrate Keycloak with a FastAPI application using Docker and Docker Compose for authentication.","language":"Python","stars":12,"topics":["authentication","fastapi","keycloak","python","security"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"FastAPI Keycloak Integration This project demonstrates how to integrate Keycloak with a FastAPI application using Docker and Docker Compose for authentication. Table of Contents - Introduction - Features - Prerequisites - Installation - Configuration - Usage - Authentication Flow - Testing the Authentication - Contributing - License Introduction This project provides a template for securing a FastAPI application using Keycloak as the identity provider. It uses Docker and Docker Compose for containerization and easy deployment. Dependency management is handled using Poetry. Features - FastAPI Application : A modern, fast web framework for building APIs with Python 3.12+. - Keycloak Integration : Secure your API endpoints with Keycloak's robust authentication and authorization features. - Custom Login Endpoint : Authenticate users via a /login endpoint that returns an access token. - Dockerized Setup : Use Docker and Docker Compose for seamless development and deployment. - Poetry for Dependency Management : Simplify your Python dependencies and virtual environments. Prerequisites - Python 3.12 - Docker - Docker Compose - Git - Up and Running Keycloak Server Ensure that you have a Keycloak server up and running, configured with the appropriate realm, client, and user. This can be set up separately or included in your Docker Compose configuration. Installation 1. Clone the Repository 2. Copy Environment Variables File Navigate to the src directory and copy the .env.example file ","default_branch":null,"files":null,"tree":[],"storefront":"/r/imjoseangel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/imjoseangel/fastapi-keycloak/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}