authentication

package
v0.0.0-...-a529750 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S19Authenticator

type S19Authenticator struct {
	// contains filtered or unexported fields
}

func NewS19Authenticator

func NewS19Authenticator(hashMethod, salt string, wwwAuthorisationHeader http.Header) *S19Authenticator

func (*S19Authenticator) GenerateAuthorizationHeader

func (a *S19Authenticator) GenerateAuthorizationHeader(uri constants.S19URI, httpMethod, nonceCount, username, password string) (string, error)

func (*S19Authenticator) GenerateRandomNonce

func (a *S19Authenticator) GenerateRandomNonce() (string, error)

type S19AuthorisationHeaderValues

type S19AuthorisationHeaderValues struct {
	Qop   string
	Nonce string
	Realm string
}

func ExtractWwwAuthenticateHeader

func ExtractWwwAuthenticateHeader(header http.Header) S19AuthorisationHeaderValues

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL