auth

package
v0.2.19-0...-0e46f23 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AuthHeaderStr string = "Authorization"

Variables

This section is empty.

Functions

func GenerateSignature

func GenerateSignature(key, method string, u *url.URL, headers map[string][]string) (ret string, err error)

func GetAuthInfo

func GetAuthInfo(r *http.Request) (user, recv_auth string, err error)

GetAuthInfo() returns username and secure hmac If there is any kind of error (there is no Authorization header, garbage in it and so on) function returns wildcard '*' user and empty ” auth hmac.

Types

This section is empty.

Jump to

Keyboard shortcuts

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