func AuthenticateUser(conf *Configuration, h UserHandler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if u, halt := authenticateUser(conf, w, r); !halt {
			h.ServeHTTPWithUser(u, w, r)
		}
	})
}
// The AuthenticateUser middleware performs the validation of the OIDC ID Token and
// forwards the authenticated user's information to the next handler in the pipeline.
// 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 and will
// receive the authenticated user information.
The AuthenticateUser middleware performs the validation of the OIDC ID Token and
forwards the authenticated user's information to the next handler in the pipeline.
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 and will
receive the authenticated user information.
// The AuthenticateUser middleware performs the validation of the OIDC ID Token and // forwards the authenticated user ' s information to the next handler in the pipeline . // 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 and will // receive the authenticated user information .
func AuthenticateUser(conf *Configuration, h UserHandler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		if u, halt := authenticateUser(conf, w, r); !halt {
			h.ServeHTTPWithUser(u, w, r)
		}
	})
}
func AuthenticateUser ( conf * Configuration , h UserHandler ) http . Handler { return http . HandlerFunc ( func ( w http . ResponseWriter , r * http . Request ) { if u , halt := authenticateUser ( conf , w , r ) ; ! halt { h . ServeHTTPWithUser ( u , w , r ) } } ) }
The AuthenticateUser middleware performs the validation of the OIDC ID Token and
forwards the authenticated user's information to the next handler in the pipeline.
The AuthenticateUser middleware performs the validation of the OIDC ID Token and forwards the authenticated user ' s information to the next handler in the pipeline .