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.1a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c678ffa69b86994831c89b98bf84a788838e324d17e918a06fcd0d05dc29f96b |
|
MD5 | 7eeccae51bbdd7c158cc7a6d5159ede1 |
|
BLAKE2b-256 | aec3dd9c3dab2e96478d04048daf0d4dc78bcb6549909deb7ed78943e0af2172 |
Close
Hashes for allianceauth_oidc_provider-0.0.1a2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 171dce1142803021c727f878b5d5a174c1fe56c41c3f0fc953237c4adb2ea887 |
|
MD5 | 84b2cc38f25714b98c4d86180d1ce619 |
|
BLAKE2b-256 | 3c47ecaabefe22098a3ecb7eec3d087748210a2ea97203c637bbfb888866270b |