http_digest_auth

package module
v0.0.0-...-c546c8e Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

README

http-digest-auth-client

Go (golang) http digest authentication client.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bod []byte

Functions

func Auth

func Auth(username string, password string, uri string) (bool, error, []byte)

func DefaultTimeoutClient

func DefaultTimeoutClient() *http.Client

func DigestAuthParams

func DigestAuthParams(r *http.Response) map[string]string

Parse Authorization header from the http.Request. Returns a map of auth parameters or nil if the header is not a valid parsable Digest auth header.

func H

func H(data string) string

H function for MD5 algorithm (returns a lower-case hex MD5 digest)

func NewTimeoutClient

func NewTimeoutClient(cTimeout time.Duration, rwTimeout time.Duration) *http.Client

apps will set three OS variables: atscale_http_sslcert - location of the http ssl cert atscale_http_sslkey - location of the http ssl key atscale_disable_keepalives - disable http keep alives

func RandomKey

func RandomKey() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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