Documentation ¶
Index ¶
- Variables
- func NewAuthHandler(logger *zap.Logger, configstoreClient *csapi.Client, adminToken string, ...) func(http.Handler) http.Handler
- func NewMaxBytesHandler(h http.Handler, n int64) *maxBytesHandler
- func NewWebBundleHandlerFunc(gatewayURL string) func(w http.ResponseWriter, r *http.Request)
- type AuthHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var BearerTokenExtractor = &jwtrequest.PostExtractionFilter{ Extractor: jwtrequest.MultiExtractor{ jwtrequest.HeaderExtractor{"Authorization"}, jwtrequest.ArgumentExtractor{"access_token"}, }, Filter: stripPrefixFromTokenString("bearer"), }
BearerTokenExtractor extracts a bearer token in format "bearer THETOKEN" from Authorization header Uses PostExtractionFilter to strip "Bearer " prefix from header
View Source
var TokenExtractor = &jwtrequest.PostExtractionFilter{ Extractor: jwtrequest.MultiExtractor{ jwtrequest.HeaderExtractor{"Authorization"}, jwtrequest.ArgumentExtractor{"access_token"}, }, Filter: stripPrefixFromTokenString("token"), }
TokenExtractor extracts a token in format "token THETOKEN" from Authorization header Uses PostExtractionFilter to strip "token " prefix from header
Functions ¶
func NewAuthHandler ¶
func NewMaxBytesHandler ¶
func NewWebBundleHandlerFunc ¶
func NewWebBundleHandlerFunc(gatewayURL string) func(w http.ResponseWriter, r *http.Request)
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func (*AuthHandler) ServeHTTP ¶
func (h *AuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.