()
| 108 | } |
| 109 | |
| 110 | func (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 | |
| 125 | func (s *webServer) endpointRoute(e *Endpoint, hf http.HandlerFunc) { |
| 126 | if e != nil { |
no test coverage detected