authentication

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MD5    = "md5"
	SHA1   = "sha1"
	SHA256 = "sha256"

	ValidUser   = true
	InvalidUser = false

	BasicAuthHeader       = "Basic"
	BearerTokenAuthHeader = "Bearer"

	Authorization = "Authorization"
)

Variables

This section is empty.

Functions

func GetActor added in v1.2.2

func GetActor(c string) string

func HandleUserCredentials

func HandleUserCredentials(authorizationHeaderString string) (*string, *string, *er.WdbError)

func Hash

func Hash(hashableString string, algorithm string) string

Returns hex of Hash

Types

type Authentication

type Authentication struct {
	Algorithm string
}

Jump to

Keyboard shortcuts

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