enabling oidc

This commit is contained in:
mahdavi 2024-07-30 12:03:47 +03:30
parent 5bad5c3f9a
commit 2522da5535
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ delme*.py
*.pyc
.env
/venv/
oidc.key

View file

@ -83,6 +83,11 @@ OAUTH2_PROVIDER = {
'introspection': 'Introspect token scope'},
'OAUTH2_VALIDATOR_CLASS': 'apps.gooyal_oauth2.validators.OAuth2Validator',
# "INTROSPECTION_USER_CREATE_METHOD": 'apps.users.models.create_user_in_introspection',
"OIDC_ENABLED": True,
# "OIDC_RSA_PRIVATE_KEY": config("OIDC_RSA_PRIVATE_KEY"),
# Enable and configure RP-Initiated Logout
"OIDC_RP_INITIATED_LOGOUT_ENABLED": True,
"OIDC_RP_INITIATED_LOGOUT_ALWAYS_PROMPT": True,
}
# GOOYAL_DYNAMIC_SCOPES