http_digest_auth

package module
v0.0.0-...-7e773b8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

README

http-digest-auth-client

Go (golang) http digest authentication client.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(username string, password string, uri string) (bool, error)

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