Documentation ¶ Index ¶ func Attempt(authenticator authn.Authenticator) func(http.Handler) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Attempt ¶ func Attempt(authenticator authn.Authenticator) func(http.Handler) http.Handler Attempt returns an http.HandlerFunc middleware that authenticates the http.Request if authentication payload is available. Otherwise, an anonymous user session is used instead. Types ¶ This section is empty. Source Files ¶ View all Source files authn.go Click to show internal directories. Click to hide internal directories.