Very simple Flask app acting as a test client to Tunnistamo authentication provider. Don't use anywhere near the production.
- flask
- flask_oidc
- flask_oauthlib
- Tunnistamo test instance running somewhere, e.g. localhost:8000
The configuration is contained in two places. OIDC configuration is located in tunnistamo_oidc.json
and OAuth2 configuration is located in tunnistamo_client/__init__.py
.
You need to add OIDC provider and OAuth2 provider clients to your Tunnistamo test instance and then add the respsective keys, secrets and URLs to the above files.
$ FLASK_ENV=development flask run -h localhost -p 4000
$ OAUTHLIB_INSECURE_TRANSPORT=1 FLASK_ENV=development flask run -h localhost -p 4000
$ WERKZEUG_DEBUG_PIN=off FLASK_ENV=development flask run -h localhost -p 4000