Incorrect token issuer in JWT

I’m following this guide, and nearly got everything working, Build Secure Node Authentication with Passport.js and OpenID Connect | Okta Developer

When validating the token, I get an error:

id token not issued by correct OpenID provider - expected: https://dev-91529742.okta.com/oauth2/default | from: https://dev-91529742.okta.com The spec is here: // Draft: OpenID Connect Basic Client Implementer's Guide 1.0 - draft 40 - check 1.

using the setting the issuer to https://dev-91529742.okta.com results in a 401 error when the library tries to get the profile info.

Is there something I am missing?

Hello,
Try setting the issuer to

https://dev-91529742.okta.com/oauth2/default

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.