Documentation ¶
Index ¶
Constants ¶
View Source
const TokenURLFormat = "%s?token=%s"
Variables ¶
This section is empty.
Functions ¶
func NewHandlerBuilder ¶
func NewHandlerBuilder(globalMiddlewares []mux.MiddlewareFunc) *handlerBuilder
Types ¶
type Config ¶
type Config struct { Middlewares []mux.MiddlewareFunc TokenManager tokens.Creator CSRInfoURL string ContextExtractor clientcontext.ConnectorClientExtractor }
type TokenHandler ¶
type TokenHandler interface {
CreateToken(w http.ResponseWriter, r *http.Request)
}
func NewTokenHandler ¶
func NewTokenHandler(tokenManager tokens.Creator, csrInfoURL string, connectorClientExtractor clientcontext.ConnectorClientExtractor) TokenHandler
Click to show internal directories.
Click to hide internal directories.