An open API service indexing awesome lists of open source software.

https://github.com/fanqingsong/fastapi_keycloak_integration


https://github.com/fanqingsong/fastapi_keycloak_integration

Last synced: 3 months ago
JSON representation

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

![alt text](images/app_urls.png "app 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`