Metadata-Version: 2.1
Name: fedora-test-auth
Version: 0.0.2
Summary: A very basic app to test authentication
Home-page: https://github.com/abompard/test-auth
Author: Aurélien Bompard
Author-email: abompard@fedoraproject.org
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flask
Requires-Dist: flask-openid
Requires-Dist: python-openid-cla
Requires-Dist: python-openid-teams
Requires-Dist: authlib

# Test Auth

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

## Configuration

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

## OIDC

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 https://iddev.fedorainfracloud.org/openidc/ http://localhost:5000/oidc
```

Where `https://iddev.fedorainfracloud.org/openidc/` is the URL of the OIDC server endpoint.

## OpenID

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