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
Click this button to deploy the app to the DigitalOcean App Platform.
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