func Authenticate(conf *Configuration, h http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if _, halt := authenticate(conf, w, r); !halt {
			h.ServeHTTP(w, r)
		}
	})
}
// The Authenticate middleware performs the validation of the OIDC ID Token.
// If an error happens, i.e.: expired token, the next handler may or may not executed depending on the
// provided ErrorHandlerFunc option. The default behavior, determined by validationErrorToHTTPStatus,
// stops the execution and returns Unauthorized.
// If the validation is successful then the next handler(h) will be executed.
The Authenticate middleware performs the validation of the OIDC ID Token.
If an error happens, i.e.: expired token, the next handler may or may not executed depending on the
provided ErrorHandlerFunc option. The default behavior, determined by validationErrorToHTTPStatus,
stops the execution and returns Unauthorized.
If the validation is successful then the next handler(h) will be executed.
// The Authenticate middleware performs the validation of the OIDC ID Token . // If an error happens i . e . : expired token the next handler may or may not executed depending on the // provided ErrorHandlerFunc option . The default behavior determined by validationErrorToHTTPStatus // stops the execution and returns Unauthorized . // If the validation is successful then the next handler ( h ) will be executed .
func Authenticate(conf *Configuration, h http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if _, halt := authenticate(conf, w, r); !halt {
			h.ServeHTTP(w, r)
		}
	})
}
func Authenticate ( conf * Configuration , h http . Handler ) http . Handler { return http . HandlerFunc ( func ( w http . ResponseWriter , r * http . Request ) { if _ , halt := authenticate ( conf , w , r ) ; ! halt { h . ServeHTTP ( w , r ) } } ) }
The Authenticate middleware performs the validation of the OIDC ID Token.
The Authenticate middleware performs the validation of the OIDC ID Token .