Skip to content

Can JWT verify function use pem files to verify the signature #122

Discussion options

You must be logged in to vote

Hi @keshavprasadms 👋

No, that function does not read certificates from disk. You'd need to either store them as part of OPA's in-memory data, in environment variables, or retrieve them from a remote endpoint. The latter solution is definitely them most common/idiomatic one, as exposing public keys via a JWKS endpoint is standardized. You can see examples of this in the docs on OAuth2 and OpenID Connect, though the principle of JWKS works just as well outside of those protocols.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@beepdot
Comment options

@anderseknert
Comment options

Answer selected by beepdot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants