Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { Type() string User() string Password() string Authorize(*http.Request) }
Authenticator stub
var Anonymous Authenticator = &noAuth{}
func Basic ¶
func Basic(user string, pw string) Authenticator
func Deferred ¶
func Deferred(user string, pw string) Authenticator
func SAML ¶
func SAML(user, pw, siteURL string, hc httpclient.HttpClient) Authenticator
type DigestAuth ¶
type DigestAuth struct {
// contains filtered or unexported fields
}
DigestAuth structure holds our credentials.
func Digest ¶
func Digest(user string, pw string) *DigestAuth
Digest implements HTTP digest authentication. see https://tools.ietf.org/html/rfc7616
func (*DigestAuth) Authorize ¶
func (d *DigestAuth) Authorize(req *http.Request)
Authorize the current request.
func (*DigestAuth) DigestParts ¶
func (d *DigestAuth) DigestParts(wwwAuthenticateHeader string) Authenticator
func (*DigestAuth) Password ¶
func (d *DigestAuth) Password() string
Password holds the DigestAuth password.
func (*DigestAuth) Type ¶
func (d *DigestAuth) Type() string
Type identifies the Digest authenticator.
Click to show internal directories.
Click to hide internal directories.