MCPcopy
hub / github.com/zitadel/oidc / createRouter

Method createRouter

pkg/op/server_http.go:110–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110func (s *webServer) createRouter() {
111 s.router.HandleFunc(healthEndpoint, simpleHandler(s, s.server.Health))
112 s.router.HandleFunc(readinessEndpoint, simpleHandler(s, s.server.Ready))
113 s.router.HandleFunc(oidc.DiscoveryEndpoint, simpleHandler(s, s.server.Discovery))
114
115 s.endpointRoute(s.endpoints.Authorization, s.authorizeHandler)
116 s.endpointRoute(s.endpoints.DeviceAuthorization, s.withClient(s.deviceAuthorizationHandler))
117 s.endpointRoute(s.endpoints.Token, s.tokensHandler)
118 s.endpointRoute(s.endpoints.Introspection, s.introspectionHandler)
119 s.endpointRoute(s.endpoints.Userinfo, s.userInfoHandler)
120 s.endpointRoute(s.endpoints.Revocation, s.withClient(s.revocationHandler))
121 s.endpointRoute(s.endpoints.EndSession, s.endSessionHandler)
122 s.endpointRoute(s.endpoints.JwksURI, simpleHandler(s, s.server.Keys))
123}
124
125func (s *webServer) endpointRoute(e *Endpoint, hf http.HandlerFunc) {
126 if e != nil {

Callers 1

RegisterServerFunction · 0.95

Calls 3

endpointRouteMethod · 0.95
withClientMethod · 0.95
simpleHandlerFunction · 0.85

Tested by

no test coverage detected