Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConnector ¶
type AuthConnector interface { Authenticate(next http.Handler) http.Handler RetrieveUserID(r http.Request) string }
Interface for authentication that connectors implement
type AuthenticatorMiddleware ¶
type AuthenticatorMiddleware struct {
// contains filtered or unexported fields
}
Authenticator middleware system, with connector and basic admin authentication
func NewAuthenticatorMiddleware ¶
func NewAuthenticatorMiddleware(connector AuthConnector, adminUser string, adminPassword string) *AuthenticatorMiddleware
NewAuthenticator returns a configured AuthenticatorMiddleware with associated connector
func (*AuthenticatorMiddleware) Action ¶
func (a *AuthenticatorMiddleware) Action(next http.Handler) http.Handler
func (*AuthenticatorMiddleware) GetInfo ¶
func (a *AuthenticatorMiddleware) GetInfo(r *http.Request, mc *middleware.MiddlewareContext)
Click to show internal directories.
Click to hide internal directories.