emacsway / drf_oidc_example

An example django rest framework project with OIDC capabilities. This can be used to create a microservice api in django.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DJANGO MICRO SERVICE

An example for a django microservice project.

Features

Endpoints:

Endpoints Description
/ A public api endpoint
/protected A protected endpoint; requires an authenticated user. Requires an Bearer token passed in the request Authorization header
/healthcheck A health check endpoint

Setup

create a .env file and add the following with there values:

OIDC_RP_CLIENT_ID=
OIDC_RP_CLIENT_SECRET=
OIDC_OP_AUTHORIZATION_ENDPOINT=
OIDC_OP_TOKEN_ENDPOINT=
OIDC_OP_USER_ENDPOINT=
OIDC_OP_END_SESSION_ENDPOINT=
OIDC_OP_JWKS_ENDPOINT=

About

An example django rest framework project with OIDC capabilities. This can be used to create a microservice api in django.


Languages

Language:Python 87.7%Language:Dockerfile 12.3%