mikenicholson / passport-jwt

Passport authentication using JSON Web Tokens
MIT License
1.96k stars 213 forks source link

JWT verification for auth code or PKCE flow #249

Open snehil2112 opened 1 year ago

snehil2112 commented 1 year ago

Hi, How can we use this library to verify token issued for a public client that does not have a secret and the token verification key is fetched from jwks_uri mentioned in well known uri. My frontend application is using keycloak oidc for authentication with public client hence no secret is applicable.

pixtron commented 1 year ago

Have a look at this example: https://github.com/auth0/node-jwks-rsa/blob/master/examples/passport-demo/README.md