mathiasburger / fastapi-oidc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

License:MIT License


Languages

Language:TypeScript 51.9%Language:Python 36.8%Language:HTML 7.4%Language:Dockerfile 3.5%Language:SCSS 0.4%