digest

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package digest defines functionality required to support digest authorization

Package digest defines functionality required to support digest authorization

Index

Constants

View Source
const (
	QOP_AUTH     = "auth"
	QOP_AUTH_INT = "auth-int"
)

Possible values of the qop parameter

View Source
const (
	MD5         = "MD5"
	MD5_SESS    = "MD5-SESS"
	SHA256      = "SHA-256"
	SHA256_SESS = "SHA-256-SESS"
)

Supported encryption algorithms

Variables

This section is empty.

Functions

func Authorize

func Authorize(username, password string, req *http.Request, client *http.Client) (string, error)

Authorize orchestrates the digest authorization process. If authz is not required, an empty string is returned, otherwise the "Authorization" header field value is returned

Types

type Authorization

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

Authorization defines all required attributes for the "Authorization" request header when performing digest authz https://tools.ietf.org/html/rfc7616#section-3.4

func (*Authorization) String

func (authz *Authorization) String() string

String generates the "Authorization" request header field value: https://tools.ietf.org/html/rfc7616#section-3.4

type WwwAuthenticateProps

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

WwwAuthenticateProps defines all supported WWW-Authenticate response header field attributes https://tools.ietf.org/html/rfc7616#section-3.3

Jump to

Keyboard shortcuts

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