WithJWKS is an option to provide a URL that contains a JSON Web Key Set (JWKS). The JWKS will be used to validate tokens coming from RPC clients against public keys contains in the JWKS.
(url string)
| 80 | // WithJWKS is an option to provide a URL that contains a JSON Web Key Set (JWKS). The JWKS will be used |
| 81 | // to validate tokens coming from RPC clients against public keys contains in the JWKS. |
| 82 | func WithJWKS(url string) StartGRPCServerOption { |
| 83 | return func(c *config) { |
| 84 | c.ac.jwksURL = url |
| 85 | c.ac.useJWKS = true |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | // WithPublicKey is an option to directly provide a ECDSA public key which is used to verify tokens coming from RPC clients. |
| 90 | func WithPublicKey(publicKey *ecdsa.PublicKey) StartGRPCServerOption { |
no outgoing calls