MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / keysHandler

Method keysHandler

rest/oidc_api_test.go:379–381  ·  view source on GitHub ↗

keysHandler exposes a set of of a public keys in JWK format that enable clients to validate a JSON Web Token (JWT) issued by this OpenID Connect Provider.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

377// keysHandler exposes a set of of a public keys in JWK format that enable clients
378// to validate a JSON Web Token (JWT) issued by this OpenID Connect Provider.
379func (s *mockAuthServer) keysHandler(w http.ResponseWriter, r *http.Request) {
380 renderJSON(w, r, http.StatusOK, jose.JSONWebKeySet{Keys: s.keys})
381}
382
383// Verifies OpenID Connect callback URL in redirect link is returned in the Location
384// header for both oidc and _oidc_challenge requests.

Callers

nothing calls this directly

Calls 1

renderJSONFunction · 0.85

Tested by

no test coverage detected