MCPcopy Create free account
hub / github.com/clouditor/clouditor / WithJWKS

Function WithJWKS

server/auth_middleware.go:82–87  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
82func 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.
90func WithPublicKey(publicKey *ecdsa.PublicKey) StartGRPCServerOption {

Callers 3

RunCLITestFuncFunction · 0.92
LaunchMethod · 0.92
TestMainFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestMainFunction · 0.74