From 73db81af14f384f148b37224587f998d1c7f12d8 Mon Sep 17 00:00:00 2001 From: Andrey Rusakov Date: Thu, 19 Sep 2024 17:14:53 +0200 Subject: [PATCH] Moved parameters to the env and env.sample --- .env.sample | 1 + default_settings.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.env.sample b/.env.sample index 1177c816..b4db5f39 100644 --- a/.env.sample +++ b/.env.sample @@ -59,3 +59,4 @@ OIDC_OP_BASE_URL="please set oidc op base url" ZITADEL_PROJECT="set_zitadel_project" OIDC_RP_CLIENT_ID="set oidc rp client id" OIDC_RP_CLIENT_SECRET="set oidc rp client secret" +OIDC_PRIVATE_KEYFILE="keyfile" \ No newline at end of file diff --git a/default_settings.py b/default_settings.py index 97929ea7..d2bb703c 100644 --- a/default_settings.py +++ b/default_settings.py @@ -299,6 +299,7 @@ def discover_endpoints(discovery_url: str) -> dict: "token_endpoint": provider_config["token_endpoint"], "userinfo_endpoint": provider_config["userinfo_endpoint"], "jwks_uri": provider_config["jwks_uri"], + "introspection_endpoint": provider_config["introspection_endpoint"], } AUTHENTICATION_BACKENDS = ( @@ -326,6 +327,8 @@ def discover_endpoints(discovery_url: str) -> dict: OIDC_OP_TOKEN_ENDPOINT = discovery_info["token_endpoint"] OIDC_OP_USER_ENDPOINT = discovery_info["userinfo_endpoint"] OIDC_OP_JWKS_ENDPOINT = discovery_info["jwks_uri"] + OIDC_OP_AUTHORIZATION_ENDPOINT = discovery_info["authorization_endpoint"] + OIDC_PRIVATE_KEYFILE = os.environ.get("OIDC_PRIVATE_KEYFILE") LOGIN_REDIRECT_URL = os.environ.get("OIDC_REDIRECT_BASE_URL") + "/oidc/callback" LOGOUT_REDIRECT_URL = os.environ.get("OIDC_REDIRECT_BASE_URL") + "/"