Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerWrapper ¶
type HandlerWrapper struct { *resthandler.AuthHandler // contains filtered or unexported fields }
HandlerWrapper authenticates request before calling handler.
func NewHandlerWrapper ¶
func NewHandlerWrapper(handler common.HTTPHandler, authCfg *resthandler.Config, s spi.Store, verifier signatureVerifier, tm authTokenManager, ) *HandlerWrapper
NewHandlerWrapper returns a new 'authenticated' handler. It verifies both tokens and signatures before proceeding.
func (*HandlerWrapper) Handler ¶
func (o *HandlerWrapper) Handler() common.HTTPRequestHandler
Handler returns the handler function.
func (*HandlerWrapper) Method ¶
func (o *HandlerWrapper) Method() string
Method returns the HTTP method.
Click to show internal directories.
Click to hide internal directories.