diff --git a/.gitignore b/.gitignore index 25a4f33..0d9702f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ delme*.py *.pyc .env /venv/ +oidc.key diff --git a/accounts/settings.py b/accounts/settings.py index ef274dc..1178455 100644 --- a/accounts/settings.py +++ b/accounts/settings.py @@ -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