...

Package cookie

import "github.com/go-kivik/kivik/v4/x/kivikd/auth/cookie"
Overview
Index

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

Package cookie provides standard CouchDB cookie auth as described at http://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication

type Auth

Auth provides CouchDB Cookie authentication.

type Auth struct{}

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.

func (*Auth) MethodName

func (a *Auth) MethodName() string

MethodName returns "cookie"