Skip to content

Commit

Permalink
Merge pull request #3 from vic-08/patch-1
Browse files Browse the repository at this point in the history
fix: missing slash in url path
  • Loading branch information
trumanbutter committed Jul 30, 2024
2 parents 1b8121b + 12c453e commit 8c8e7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function setUpOIDC() {
if(tenantURL?.endsWith('/')) {
tenantURL = `${tenantURL}oauth2/.well-known/openid-configuration`
} else {
tenantURL = `${tenantURL}oauth2/.well-known/openid-configuration`
tenantURL = `${tenantURL}/oauth2/.well-known/openid-configuration`
}
const issuer = await Issuer.discover(tenantURL);
const client = new issuer.Client({
Expand Down Expand Up @@ -123,4 +123,4 @@ app.get('/logout', async (req, res) => {
app.listen(3000, () => {
console.log('Server started');
console.log(`Navigate to http://localhost:3000`);
});
});

0 comments on commit 8c8e7f6

Please sign in to comment.