feat: token verifier improvements#1111
feat: token verifier improvements#1111thomas-advantitge wants to merge 8 commits intoboostercloud:mainfrom
Conversation
…optional-tokenverifier-issuer-before
|
Interesting. I've been working on a refactor of the token verifiers in #1083 to allow users to define their own token verifier classes. Our idea was to provide a couple of default implementations, but allowing users to provide alternate implementations to decode their tokens in any way they want with the libraries of their choice. We choose |
|
Closing this PR as I've moved the changes to a new PR (#1147) in which we're also updating the code to work with the new |
jsonwebtokenandjwks-rsadependencies withjosebecause jose has zero dependencies.decryptionKey(next topublicKey) which can be used to decrypt JWE tokens. This can be useful when using libraries like NextAuth.js.tokenVerifierConfigso only one option can be configured at a time.Note: GitHub Actions build seem to fail because of an unrelated issue of a missing dependency (
@aws-cdk/core). Probably due to dependency changes in this PR the package-lock.json was updated, exposing the missing dependency.This missing dependency is also added in this PR: https://github.com/boostercloud/booster/pull/1114/files#diff-548dc534cd80fb7795092faaf28b3d13e17964e46292327b031b68b90c3967edR34