auth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticated

func Authenticated(hash, pass []byte) bool

func GetHeaderToken

func GetHeaderToken(header string) []byte

GetHeaderToken parses out the user token from an Authorization header.

func GetToken

func GetToken(header string) []byte

GetToken parses out the user token from either an Authorization header or simply passed in.

func HashPass

func HashPass(password []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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