From aca9492fb783e8c9381a247fba3c0b5e5be2532e Mon Sep 17 00:00:00 2001 From: Conor Holden Date: Tue, 30 Jul 2024 16:45:18 +0200 Subject: [PATCH] :bug:[#114] make endpoints required --- docs/setup_configuration.rst | 4 +++- mozilla_django_oidc_db/setupconfig/boostrap.py | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/setup_configuration.rst b/docs/setup_configuration.rst index 8c27272..bc846dd 100644 --- a/docs/setup_configuration.rst +++ b/docs/setup_configuration.rst @@ -42,9 +42,11 @@ Required: :: - ADMIN_OIDC_DEFAULT_GROUPS ADMIN_OIDC_OIDC_RP_CLIENT_ID ADMIN_OIDC_OIDC_RP_CLIENT_SECRET + ADMIN_OIDC_OIDC_OP_AUTHORIZATION_ENDPOINT + ADMIN_OIDC_OIDC_OP_TOKEN_ENDPOINT + ADMIN_OIDC_OIDC_OP_USER_ENDPOINT All settings: diff --git a/mozilla_django_oidc_db/setupconfig/boostrap.py b/mozilla_django_oidc_db/setupconfig/boostrap.py index d4e917a..ee1ca72 100644 --- a/mozilla_django_oidc_db/setupconfig/boostrap.py +++ b/mozilla_django_oidc_db/setupconfig/boostrap.py @@ -17,6 +17,9 @@ class AdminOIDCConfigurationStep(BaseConfigurationStep): required_settings = [ "ADMIN_OIDC_OIDC_RP_CLIENT_ID", "ADMIN_OIDC_OIDC_RP_CLIENT_SECRET", + "ADMIN_OIDC_OIDC_OP_AUTHORIZATION_ENDPOINT", + "ADMIN_OIDC_OIDC_OP_TOKEN_ENDPOINT", + "ADMIN_OIDC_OIDC_OP_USER_ENDPOINT", ] all_settings = required_settings + [ "ADMIN_OIDC_OIDC_RP_SCOPES_LIST", @@ -24,9 +27,6 @@ class AdminOIDCConfigurationStep(BaseConfigurationStep): "ADMIN_OIDC_OIDC_RP_IDP_SIGN_KEY", "ADMIN_OIDC_OIDC_OP_DISCOVERY_ENDPOINT", "ADMIN_OIDC_OIDC_OP_JWKS_ENDPOINT", - "ADMIN_OIDC_OIDC_OP_AUTHORIZATION_ENDPOINT", - "ADMIN_OIDC_OIDC_OP_TOKEN_ENDPOINT", - "ADMIN_OIDC_OIDC_OP_USER_ENDPOINT", "ADMIN_OIDC_USERNAME_CLAIM", "ADMIN_OIDC_GROUPS_CLAIM", "ADMIN_OIDC_CLAIM_MAPPING",