myoufM
ZITADEL•13mo ago
myouf

[NestJS integration] Using JWKS strategy

Hi everyone 👋 We have successfully followed the guide to integrating Zitadel with Node.js (NestJS framework) using Zitadel Cloud. Under the hood, the example repo relies on custom libs such as passport-zitadel to implement OAuth2/OIDC authentication via introspection token strategy. Question is, what about the alternative of locally validating user JWTs directly with the JSON Web Key Set (JWKS) exposed by Zitadel (public keys exposed through {domain}/oauth/v2/keys)? In this case, would it be advisable to create a new custom strategy? Maybe use another library (not necessarily Zitadel-oriented, but compatible with any OIDC provider)?
Was this page helpful?