Skip to content

Commit

Permalink
fix: Account for baseurl with path in oidc metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
emgrav committed May 17, 2024
1 parent 94ce66f commit 75e65c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jwt:
# Require tokens to have an expiry set, defaults to true (optional)
require_expiry: true
oidc:
issuer: "https://idp.example.com"
# Include trailing slash
issuer: "https://idp.example.com/"
client_id: "<IDP client id>"
client_secret: "<IDP client secret>"
# Zitadel Organization ID, used for masking. (Optional)
Expand Down
2 changes: 1 addition & 1 deletion synapse_token_authenticator/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, issuer: str, configuration: dict):

async def get_oidp_metadata(issuer, client) -> OpenIDProviderMetadata:
config = await client.get_json(
urljoin(issuer, "/.well-known/openid-configuration"),
urljoin(issuer, ".well-known/openid-configuration"),
)
return OpenIDProviderMetadata(issuer, config)

Expand Down

0 comments on commit 75e65c7

Please sign in to comment.