/fastapi-oidc

Primary LanguageTypeScriptMIT LicenseMIT

fastapi-oidc

Purpose

Demonstrate how to use OIDC with PKCE with keycloak, fastapi and angular.

Setup

Install miniconda and install the environment with conda env create -f environment.yml. Update with conda env update -f environment.yml.

Install pre-commit hooks: pre-commit install.

Starting

Start keycloak.

Start the python api server with python -m fastapi_oidc.main. Documentation on using SwaggerUI can be found in fastapi oidc.

Then start the angular app.

Keycloak

See keycloak.

Certified Implementations of OIDC

OpenID Connect Provider (Authentication Server, supports PKCE):

OpenID Connect Relying Party (Client, e.g.Webapp, supports PKCE):

Angular OIDC Client (supports PKCE):

React OIDC (based upon certified oidc-client-js):

Further Reading

OpenID Connect:

Validation of the Access Token

Keycloak:

JWT: