Documentation
¶
Index ¶
- func BasicAuth(credentials BasicAuthCredentials) mux.MiddlewareFunc
- func Logger(out io.Writer, t logger.Type) mux.MiddlewareFunc
- func RequestParameters(expectedRequestParams ExpectedRequestParameters) mux.MiddlewareFunc
- func SetupMTLSRoutes(logOut io.Writer, oAuthCredentials OAuthCredentials, ...) http.Handler
- func SetupRoutes(logOut io.Writer, basicAuthCredentials BasicAuthCredentials, ...) http.Handler
- type BasicAuthCredentials
- type CSRFHandler
- type CSRFTokens
- type EchoResponse
- type ExpectedRequestParameters
- type OAuthCredentials
- type OAuthHandler
- type OAuthToken
- type OauthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuth ¶
func BasicAuth(credentials BasicAuthCredentials) mux.MiddlewareFunc
func RequestParameters ¶
func RequestParameters(expectedRequestParams ExpectedRequestParameters) mux.MiddlewareFunc
func SetupMTLSRoutes ¶
func SetupMTLSRoutes(logOut io.Writer, oAuthCredentials OAuthCredentials, oauthTokens map[string]OAuthToken, csrfTokens CSRFTokens) http.Handler
func SetupRoutes ¶
func SetupRoutes(logOut io.Writer, basicAuthCredentials BasicAuthCredentials, oAuthCredentials OAuthCredentials, expectedRequestParameters ExpectedRequestParameters, oauthTokens map[string]OAuthToken, csrfTokens CSRFTokens) http.Handler
Types ¶
type BasicAuthCredentials ¶
type CSRFHandler ¶
type CSRFHandler struct {
// contains filtered or unexported fields
}
func NewCSRF ¶
func NewCSRF(tokens CSRFTokens) CSRFHandler
func (*CSRFHandler) BadToken ¶
func (ch *CSRFHandler) BadToken(w http.ResponseWriter, _ *http.Request)
func (*CSRFHandler) Middleware ¶
func (ch *CSRFHandler) Middleware() mux.MiddlewareFunc
func (*CSRFHandler) Token ¶
func (ch *CSRFHandler) Token(w http.ResponseWriter, _ *http.Request)
type CSRFTokens ¶
type CSRFTokens map[string]interface{}
type EchoResponse ¶
type OAuthCredentials ¶
type OAuthHandler ¶
type OAuthHandler struct {
// contains filtered or unexported fields
}
func NewOAuth ¶
func NewOAuth(clientID, clientSecret string, tokens map[string]OAuthToken) OAuthHandler
func (*OAuthHandler) BadToken ¶
func (oh *OAuthHandler) BadToken(w http.ResponseWriter, r *http.Request)
func (*OAuthHandler) MTLSToken ¶
func (oh *OAuthHandler) MTLSToken(w http.ResponseWriter, r *http.Request)
func (*OAuthHandler) Middleware ¶
func (oh *OAuthHandler) Middleware() mux.MiddlewareFunc
func (*OAuthHandler) Token ¶
func (oh *OAuthHandler) Token(w http.ResponseWriter, r *http.Request)
type OAuthToken ¶
type OAuthToken struct {
// contains filtered or unexported fields
}
func (OAuthToken) Valid ¶
func (token OAuthToken) Valid() bool
type OauthResponse ¶
Click to show internal directories.
Click to hide internal directories.