From 2522da553555205b70f5b0b47de4a060dddaabf0 Mon Sep 17 00:00:00 2001 From: mahdavi Date: Tue, 30 Jul 2024 12:03:47 +0330 Subject: [PATCH] enabling oidc --- .gitignore | 1 + accounts/settings.py | 5 +++++ 2 files changed, 6 insertions(+) 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