Skip to content

Unable to specify multiple JWT public keys #346

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

Open
mkoval opened this issue May 10, 2025 · 0 comments
Open

Unable to specify multiple JWT public keys #346

mkoval opened this issue May 10, 2025 · 0 comments

Comments

@mkoval
Copy link

mkoval commented May 10, 2025

It is common for auth providers to use multiple private keys, each with its own public key. At a minimum, Auth0 and AWS Cognito follow this practice. I suspect that this is common to enable zero-downtime key rotation. This is also a core part of the JWKS format (RFC-7517), which contains a set of JWKs.

The only option for configuring external authentication on the Triplet server is via the TRIPLIT_EXTERNAL_JWT_SECRET env variable, which accepts a single JWK as described in #345. This makes it impossible to use Triplit many auth providers in a production setup. Is there a workaround to pass multiple JWKs, or a JWKS, to the Triplit server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant