Alliance Auth OIDC Provider
Project description
allianceauth_oidc
allianceauth_oidc
WIP, MVP, Alpha Level Testing ONLY
Setup/Install:
add to INSTALLED_APPS
'allianceauth_oidc',
'oauth2_provider',
Settings Required
OAUTH2_PROVIDER_APPLICATION_MODEL='allianceauth_oidc.AllianceAuthApplication'
OAUTH2_PROVIDER = {
"OIDC_ENABLED": True,
# https://django-oauth-toolkit.readthedocs.io/en/stable/oidc.html#creating-rsa-private-key
"OIDC_RSA_PRIVATE_KEY": os.environ.get('OIDC_RSA_PRIVATE_KEY'), ## Load your private key into an env variable
"OAUTH2_VALIDATOR_CLASS": "allianceauth_oidc.auth_provider.AllianceAuthOAuth2Validator",
"SCOPES": {
"openid": "User Profile",
"email": "User email",
"profile": "Affiliations and Groups"
},
"PKCE_REQUIRED": False,
"APPLICATION_ADMIN_CLASS": "allianceauth_oidc.admin.ApplicationAdmin",
'ACCESS_TOKEN_EXPIRE_SECONDS': 60,
'REFRESH_TOKEN_EXPIRE_SECONDS': 24*60*60,
'ROTATE_REFRESH_TOKEN': True,
}
URLs file edits
add
path('o/', include('allianceauth_oidc.urls', namespace='oauth2_provider')),
run migrations restart auth
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for allianceauth_oidc_provider-0.0.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf26ed7713e355f508cf14b63f554367501a32b6b837e730d8a1b7f989df8d00 |
|
MD5 | 7593856497b42c468904d02e29235ef1 |
|
BLAKE2b-256 | 8a5b41c7dae1e616763e1fe9fc623b98dac468c33cb169d90b064a0b3791992e |
Close
Hashes for allianceauth_oidc_provider-0.0.1a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f00a73488fb9dcab997c61b663f00b7b5bff714562959f8f541d3d860e3d14 |
|
MD5 | f33658336f614b9d291c5a6ea4645432 |
|
BLAKE2b-256 | c8a5d920321872c4751bfe67639a7384eb2299f2f32aa546ed9345ee78490e5b |