https://github.com/fanqingsong/fastapi_keycloak_integration
https://github.com/fanqingsong/fastapi_keycloak_integration
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fanqingsong/fastapi_keycloak_integration
- Owner: fanqingsong
- License: mit
- Created: 2023-05-06T09:10:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-06T14:50:37.000Z (about 2 years ago)
- Last Synced: 2025-01-14T13:52:35.414Z (5 months ago)
- Language: Python
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Purpose
Based on https://github.com/hkiang01/fastapi-keycloak-oidc-auth
learn how to use Keycloak in a manner that secures APIs independently of the application.## Quickstart
1. Log into keycloak admin console (see docker compose)
2. Create "Clients" realm (upper left)
3. Within "Clients" realm, create a client called "app" with the following URLs
4. Create a user with username and password set to "test"
5. `docker-compose down && docker-compose build && docker-compose up`
6. Navigate to `localhost:8000/login`