Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginHandler ¶ added in v0.1.0
func LoginHandler(authroot string, checker common.PasswordChecker, provider common.KeyProvider, insecure bool) *mux.Router
LoginHandler returns a router that handles the login and logout routes.
func NewMiddleware ¶
func NewMiddleware(config *Options) common.Middleware
NewMiddleware returns a middlware suitable for authentication.
func NewSecureCookieChecker ¶ added in v0.1.0
func NewSecureCookieChecker(provider common.KeyProvider, users *user.Registry) common.RequestChecker
NewSecureCookieChecker verifies authentication tokens on requests according to secure cookies
Types ¶
Click to show internal directories.
Click to hide internal directories.