Skip to content

OpenID authentication integration with CrossID using FastApi

Notifications You must be signed in to change notification settings

crossid/sample-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample-fastapi

First, install dependencies

python3  -m venv env
source ./env/bin/activate
pip3 install -r requirements.txt

Then run server with:

ISSUER_BASE_URL=https://<tenant_id>.crossid.io/oauth2/ \
uvicorn app:app --port 8080

Deploying on Digital Ocean

Click this button to deploy the app to the DigitalOcean App Platform.

Deploy to DigitalOcean

Fill the needed enviroment variables: ISSUER_BASE_URL

or if you have doctl installed then run:

doctl apps create --spec .do/app.yaml

Then go to the DigitalOcean admin screen and update the enviroment variables: Fill the needed enviroment variables: ISSUER_BASE_URL

Take note of the public url of your new app.

You will need to get a token from CrossID UI, and be able to use it with the /protected route

About

OpenID authentication integration with CrossID using FastApi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages