Skip to content

Commit

Permalink
Moved parameters to the env and env.sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Rusakov committed Sep 26, 2024
1 parent 1764745 commit 73db81a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 3 additions & 0 deletions default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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") + "/"
Expand Down

0 comments on commit 73db81a

Please sign in to comment.