Skip to content

Commit

Permalink
Make OIDC env var assignment consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
sbreker committed Sep 13, 2024
1 parent 205701b commit 121381a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dashboard/src/settings/components/oidc_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ def get_oidc_secondary_providers(oidc_secondary_provider_names):
"https://login.microsoftonline.com/%s/discovery/v2.0/keys" % AZURE_TENANT_ID
)
else:
OIDC_OP_AUTHORIZATION_ENDPOINT = os.environ["OIDC_OP_AUTHORIZATION_ENDPOINT"]
OIDC_OP_TOKEN_ENDPOINT = os.environ["OIDC_OP_TOKEN_ENDPOINT"]
OIDC_OP_USER_ENDPOINT = os.environ["OIDC_OP_USER_ENDPOINT"]
OIDC_OP_AUTHORIZATION_ENDPOINT = os.environ.get(
"OIDC_OP_AUTHORIZATION_ENDPOINT", ""
)
OIDC_OP_TOKEN_ENDPOINT = os.environ.get("OIDC_OP_TOKEN_ENDPOINT", "")
OIDC_OP_USER_ENDPOINT = os.environ.get("OIDC_OP_USER_ENDPOINT", "")
OIDC_OP_JWKS_ENDPOINT = os.environ.get("OIDC_OP_JWKS_ENDPOINT", "")
OIDC_OP_LOGOUT_ENDPOINT = os.environ.get("OIDC_OP_LOGOUT_ENDPOINT", "")

Expand Down

0 comments on commit 121381a

Please sign in to comment.