Versions in this module Expand all Collapse all v2 v2.11.6 Dec 15, 2021 v2.11.5 Dec 10, 2021 Changes in this version + var ErrInavlidHeader = errors.New("strategies/digest: Invalid Authorization Header") + var ErrInvalidResponse = errors.New("strategies/digest: Invalid Response") + func SetHash(h crypto.Hash, algorithm string) auth.Option + func SetOpaque(opaque string) auth.Option + func SetRealm(realm string) auth.Option + type Digest struct + func New(f FetchUser, c auth.Cache, opts ...auth.Option) *Digest + func (d *Digest) Authenticate(ctx context.Context, r *http.Request) (auth.Info, error) + func (d *Digest) GetChallenge() string + type FetchUser func(userName string) (string, auth.Info, error) + type Header map[string]string + func (h Header) Algorithm() string + func (h Header) Clone() Header + func (h Header) Cnonce() string + func (h Header) Compare(ch Header) error + func (h Header) NC() string + func (h Header) Nonce() string + func (h Header) Opaque() string + func (h Header) Parse(authorization string) error + func (h Header) QOP() string + func (h Header) Realm() string + func (h Header) Response() string + func (h Header) SetAlgorithm(a string) + func (h Header) SetCnonce(cn string) + func (h Header) SetNC(n string) + func (h Header) SetNonce(n string) + func (h Header) SetOpaque(o string) + func (h Header) SetQOP(q string) + func (h Header) SetRealm(r string) + func (h Header) SetResponse(r string) + func (h Header) SetURI(u string) + func (h Header) SetUserName(u string) + func (h Header) String() string + func (h Header) URI() string + func (h Header) UserName() string + func (h Header) WWWAuthenticate() string