func (s *OpenIDMetadataServer) Install(c *restful.Container) {
	// Configuration WebService
	// Container.Add "will detect duplicate root paths and exit in that case",
	// so we need a root for /.well-known/openid-configuration to avoid conflicts.
	cfg := new(restful.WebService).
		Produces(restful.MIME_JSON)

	cfg.Path(serviceaccount.OpenIDConfigPath).Route(
		cfg.GET("").
			To(fromStandard(s.serveConfiguration)).
			Doc("get service account issuer OpenID configuration, also known as the 'OIDC discovery doc'").
			Operation("getServiceAccountIssuerOpenIDConfiguration").
			// Just include the OK, doesn't look like we include Internal Error in our openapi-spec.
			Returns(http.StatusOK, "OK", ""))
	c.Add(cfg)

	// JWKS WebService
	jwks := new(restful.WebService).
		Produces(mimeJWKS)

	jwks.Path(serviceaccount.JWKSPath).Route(
		jwks.GET("").
			To(fromStandard(s.serveKeys)).
			Doc("get service account issuer OpenID JSON Web Key Set (contains public token verification keys)").
			Operation("getServiceAccountIssuerOpenIDKeyset").
			// Just include the OK, doesn't look like we include Internal Error in our openapi-spec.
			Returns(http.StatusOK, "OK", ""))
	c.Add(jwks)
}
// Install adds this server to the request router c.
Install adds this server to the request router c.
// Install adds this server to the request router c .
func (s *OpenIDMetadataServer) Install(c *restful.Container) {
	cfg := new(restful.WebService).
		Produces(restful.MIME_JSON)
	cfg.Path(serviceaccount.OpenIDConfigPath).Route(
		cfg.GET("").
			To(fromStandard(s.serveConfiguration)).
			Doc("get service account issuer OpenID configuration, also known as the 'OIDC discovery doc'").
			Operation("getServiceAccountIssuerOpenIDConfiguration").
			Returns(http.StatusOK, "OK", ""))
	c.Add(cfg)
	jwks := new(restful.WebService).
		Produces(mimeJWKS)
	jwks.Path(serviceaccount.JWKSPath).Route(
		jwks.GET("").
			To(fromStandard(s.serveKeys)).
			Doc("get service account issuer OpenID JSON Web Key Set (contains public token verification keys)").
			Operation("getServiceAccountIssuerOpenIDKeyset").
			Returns(http.StatusOK, "OK", ""))
	c.Add(jwks)
}
func ( s * OpenIDMetadataServer ) Install ( c * restful . Container ) { cfg := new ( restful . WebService ) . Produces ( restful . MIME_JSON ) cfg . Path ( serviceaccount . OpenIDConfigPath ) . Route ( cfg . GET ( " " ) . To ( fromStandard ( s . serveConfiguration ) ) . Doc ( " " ) . Operation ( " " ) . Returns ( http . StatusOK , " " , " " ) ) c . Add ( cfg ) jwks := new ( restful . WebService ) . Produces ( mimeJWKS ) jwks . Path ( serviceaccount . JWKSPath ) . Route ( jwks . GET ( " " ) . To ( fromStandard ( s . serveKeys ) ) . Doc ( " " ) . Operation ( " " ) . Returns ( http . StatusOK , " " , " " ) ) c . Add ( jwks ) }
Install adds this server to the request router c.
Install adds this server to the request router c .
// Configuration WebService // Container.Add "will detect duplicate root paths and exit in that case", // so we need a root for /.well-known/openid-configuration to avoid conflicts. // Just include the OK, doesn't look like we include Internal Error in our openapi-spec. // JWKS WebService // Just include the OK, doesn't look like we include Internal Error in our openapi-spec.