PoC OIDC frontend

This commit is contained in:
Spitfireap
2024-06-22 19:44:51 +02:00
parent a9f59c98ee
commit c106ecb649
8 changed files with 88 additions and 147 deletions
+6 -1
View File
@@ -194,12 +194,17 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "media")
# oAuth2 settings
OAUTH2_PROVIDER = {
"OIDC_ENABLED": True,
"OIDC_RP_INITIATED_LOGOUT_ENABLED": True,
"OIDC_RP_INITIATED_LOGOUT_ALWAYS_PROMPT": True,
"OIDC_RSA_PRIVATE_KEY": os.environ.get("OIDC_RSA_PRIVATE_KEY"),
"SCOPES": {
"openid": "OpenID Connect scope",
"read": "Read scope",
"write": "Write scope",
"introspection": "Introspect token scope",
},
"DEFAULT_SCOPES": ["read", "write"],
"DEFAULT_SCOPES": ["openid", "read", "write"],
}
# Rest framework settings