Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // MethodName identifies the handler. It is only called once on server // start up. MethodName() string // Authenticate authenticates the HTTP request. On success, a user context // must be returned. Any error will immediately terminate the authentication // process, returning an error to the client. In particular, this means that // an "unauthorized" error must not be returned if fallthrough is intended. // If a response is sent, execution does not continue. This allows handlers // to expose their own API endpoints (for example, the default cookie auth // handler adds POST /_session and DELETE /_session handlers). Authenticate(http.ResponseWriter, *http.Request) (*authdb.UserContext, error) }
Handler is an auth handler.
Directories ¶
Path | Synopsis |
---|---|
Package basic provides HTTP Basic Auth services.
|
Package basic provides HTTP Basic Auth services. |
Package cookie provides standard CouchDB cookie auth as described at http://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication
|
Package cookie provides standard CouchDB cookie auth as described at http://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication |
Click to show internal directories.
Click to hide internal directories.