Documentation ¶
Overview ¶
Package cookie provides standard CouchDB cookie auth as described at http://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct{}
Auth provides CouchDB Cookie authentication.
func (*Auth) Authenticate ¶
func (a *Auth) Authenticate(w http.ResponseWriter, r *http.Request) (*authdb.UserContext, error)
Authenticate authenticates a request with cookie auth against the user store.
Click to show internal directories.
Click to hide internal directories.