Skip to content

Commit

Permalink
Don't modify issuer URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-dalby committed Nov 24, 2024
1 parent 56e73eb commit 36e08f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/src/oidc/oidcConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ class OIDCConfig {
throw new Error('OIDC_ISSUER_URL environment variable is not set');
}

const normalizedUrl = discoveryUrl.endsWith('/') ? discoveryUrl : `${discoveryUrl}/`;
Logger.debug(`Discovering OIDC configuration from ${normalizedUrl}`);
Logger.debug(`Discovering OIDC configuration from ${discoveryUrl}`);

try {
const issuerUrl = new URL(normalizedUrl);
const issuerUrl = new URL(discoveryUrl);

this.config = await client.discovery(
issuerUrl,
Expand Down

0 comments on commit 36e08f6

Please sign in to comment.