Skip to content

Commit

Permalink
fix: remove trailing slash from oidc url [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Faber committed Nov 23, 2020
1 parent 4ac3a1b commit 552d1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/keycloak/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function oidcCfg(providerCfg: OidcProviderCfg, tenantId: string, clientId
}

export async function getDiscoveryUrls(oidcUrl: string, version = 'v2.0') {
return await axios.get(`${oidcUrl}/${version}/.well-known/openid-configuration`).then((response) => {
return await axios.get(`${oidcUrl}${version}/.well-known/openid-configuration`).then((response) => {
if (!response.data) throw Error('Oidc Provider Address not found!')
return response.data
})
Expand Down

0 comments on commit 552d1c8

Please sign in to comment.