Skip to main content

A very basic app to test authentication

Project description

Test Auth

This is a very basic app to test authentication in the Fedora infrastructure.


You can configure the app using a configuration file, you need to point to this file with the TESTAUTH_SETTINGS environment variable.

In the configuration file you can set:

  • SECRET_KEY: a unique secret key for signing cookies (see the Flask documentation)
  • OIDC_CLIENT_SECRETS: the path to the client_secrets.json file for OIDC auth
  • OIDC_SCOPES: the list of OIDC scopes to request from the server
  • OPENID_ENDPOINT: the URL of the OpenID server endpoint
  • OPENID_ASK_FOR: the list of attributes to request from the server
  • OPENID_ASK_FOR_OPTIONAL: the list of attributes to optionaly request


Test the OIDC authentication system using the /oidc path. You must have set a client secrets file by doing:

$ pip3 install oidc-register
$ oidc-register http://localhost:5000/oidc

Where is the URL of the OIDC server endpoint.


Test the OpenID authentication system using the /openid path. There is no server-side configuration to do.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fedora-test-auth-0.0.2.tar.gz (18.0 kB view hashes)

Uploaded Source

Built Distribution

fedora_test_auth-0.0.2-py2.py3-none-any.whl (19.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page