//
pkg.gl
Category
github.com/infinitbyte/framework
lib
guardian
auth
strategies
digest
package
1.1.3
Repository:
https://github.com/infinitbyte/framework.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
11
Dependents
0
Files
266 SLOC
#
Functions
New
New returns digest authentication strategy.
SetHash
SetHash set the hashing algorithm to hash the user password.
SetOpaque
SetOpaque set digest opaque.
SetRealm
SetRealm set digest authentication realm.
#
Variables
ErrInavlidHeader
ErrInavlidHeader is returned by Header parse when authz header is not digest.
ErrInvalidResponse
ErrInvalidResponse is returned by Strategy when client authz response does not match server hash.
#
Structs
Digest
Digest authentication strategy.
#
Type aliases
FetchUser
FetchUser a callback function to return the user password and user info.
Header
Header represents The Authorization Header Field, and WWW-Authenticate Response Header Field as described in RFC 7616.