Documentation ¶
Index ¶
- func DebugHandler(writer http.ResponseWriter, req *http.Request)
- func DiscoveryHandler(logger *zap.Logger, withOAuthURI func(string) string) func(wrt http.ResponseWriter, _ *http.Request)
- func EmptyHandler(_ http.ResponseWriter, _ *http.Request)
- func ExpirationHandler(...) func(wrt http.ResponseWriter, req *http.Request)
- func GetRedirectionURL(logger *zap.Logger, redirectionURL string, noProxy bool, noRedirects bool, ...) func(wrt http.ResponseWriter, req *http.Request) string
- func HealthHandler(w http.ResponseWriter, _ *http.Request)
- func MethodNotAllowHandlder(w http.ResponseWriter, _ *http.Request)
- func ProxyMetricsHandler(localhostMetrics bool, ...) func(wrt http.ResponseWriter, req *http.Request)
- func RetrieveIDToken(cookieIDTokenName string, enableEncryptedToken bool, forceEncryptedCookie bool, ...) (string, string, error)
- func TokenHandler(...) func(wrt http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugHandler ¶
func DebugHandler(writer http.ResponseWriter, req *http.Request)
DebugHandler is responsible for providing the pprof
func DiscoveryHandler ¶
func DiscoveryHandler( logger *zap.Logger, withOAuthURI func(string) string, ) func(wrt http.ResponseWriter, _ *http.Request)
discoveryHandler provides endpoint info
func EmptyHandler ¶
func EmptyHandler(_ http.ResponseWriter, _ *http.Request)
EmptyHandler is responsible for doing nothing
func ExpirationHandler ¶
func ExpirationHandler( getIdentity func(req *http.Request, tokenCookie string, tokenHeader string) (*models.UserContext, error), cookieAccessName string, ) func(wrt http.ResponseWriter, req *http.Request)
ExpirationHandler checks if the token has expired
func GetRedirectionURL ¶
func GetRedirectionURL( logger *zap.Logger, redirectionURL string, noProxy bool, noRedirects bool, secureCookie bool, cookieOAuthStateName string, withOAuthURI func(string) string, ) func(wrt http.ResponseWriter, req *http.Request) string
getRedirectionURL returns the redirectionURL for the oauth flow
func HealthHandler ¶
func HealthHandler(w http.ResponseWriter, _ *http.Request)
HealthHandler is a health check handler for the service
func MethodNotAllowHandlder ¶
func MethodNotAllowHandlder(w http.ResponseWriter, _ *http.Request)
func ProxyMetricsHandler ¶
func ProxyMetricsHandler( localhostMetrics bool, accessForbidden func(wrt http.ResponseWriter, req *http.Request) context.Context, metricsHandler http.Handler, ) func(wrt http.ResponseWriter, req *http.Request)
ProxyMetricsHandler forwards the request into the prometheus handler
func RetrieveIDToken ¶
func RetrieveIDToken( cookieIDTokenName string, enableEncryptedToken bool, forceEncryptedCookie bool, encryptionKey string, req *http.Request, ) (string, string, error)
RetrieveIDToken retrieves the id token from cookie
func TokenHandler ¶
func TokenHandler( getIdentity func(req *http.Request, tokenCookie string, tokenHeader string) (*models.UserContext, error), cookieAccessName string, accessError func(wrt http.ResponseWriter, req *http.Request) context.Context, ) func(wrt http.ResponseWriter, req *http.Request)
TokenHandler display access token to screen
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.