Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationMiddleware ¶
type AuthenticationMiddleware struct {
// contains filtered or unexported fields
}
AuthenticationMiddleware provides authentication middlewares.
func NewAuthenticationMiddleware ¶
func NewAuthenticationMiddleware() *AuthenticationMiddleware
NewAuthenticationMiddleware returns a new authentication middleware.
func (*AuthenticationMiddleware) BasicAuth ¶
func (m *AuthenticationMiddleware) BasicAuth(next rum.RoundTripperFunc) rum.RoundTripperFunc
BasicAuth adds the Authorization header for the basic authorization request.
func (*AuthenticationMiddleware) BearerToken ¶
func (m *AuthenticationMiddleware) BearerToken(next rum.RoundTripperFunc, config *BearerTokenConfig) rum.RoundTripperFunc
BearerToken adds the Authorization header for the bearer token authorization request.
type BasicAuthConfig ¶
BasicAuthConfig is the config for basicAuth authorization.
type BearerTokenConfig ¶
type BearerTokenConfig struct {
BearerToken string
}
BearerTokenConfig is the config for Bearer token authorization.
Click to show internal directories.
Click to hide internal directories.