Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiError ¶
type MultiError []error
MultiError represent multiple errors that occur when attempting to authenticate a request.
func (MultiError) Error ¶
func (errs MultiError) Error() string
type Union ¶
type Union interface { auth.Strategy // AuthenticateRequest authenticates the request using a chain of strategies. // AuthenticateRequest returns user info alongside the successful strategy. AuthenticateRequest(r *http.Request) (auth.Strategy, auth.Info, error) // Chain returns chain of strategies Chain() []auth.Strategy }
Union implements authentication strategy, and consolidate a chain of strategies.
Click to show internal directories.
Click to hide internal directories.