Skip to content

Algo 1/fix vulnerabilities #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 16, 2024
Prev Previous commit
Next Next commit
revert change to jwksUri & issuer
  • Loading branch information
algo-1 committed Aug 9, 2024
commit 93ff80359dc266cadcc5151bb6826add1f1fac8e
4 changes: 2 additions & 2 deletions protected-api-access-protected-api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ const app = express()
// Add Express middleware to validate JWT access tokens
app.use(jwt({
secret: jwks.expressJwtSecret({
jwksUri: `https://${config.auth.tenant}.ciamlogin.com/` + config.auth.tenant + '/discovery/v2.0/keys'
jwksUri: config.auth.authority + '/discovery/v2.0/keys'
}),
audience: config.auth.clientId,
issuer: `https://${config.auth.tenant}.ciamlogin.com/` + config.auth.tenant + '/v2.0',
issuer: config.auth.authority + '/v2.0',
algorithms: ['RS256']
}))

Expand Down