modulepackage
0.0.0-20161026210932-d341ea318957
Repository: https://github.com/tent/hawk-go.git
Documentation: pkg.go.dev
# README
hawk-go 
hawk-go implements the Hawk HTTP authentication scheme in Go.
Installation
go get github.com/tent/hawk-go
# Functions
NewAuthFromRequest parses a request containing an Authorization header or bewit parameter and populates an Auth.
NewRequestAuth builds a client Auth based on req and creds.
NewRequestAuth builds a client Auth based on uri and creds.
ParseBewit parses a bewit token provided in a URL parameter and populates an Auth.
ParseRequestHeader parses a Hawk header (provided in the Authorization HTTP header) and populates an Auth.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxTimestampSkew is the maximum ±skew that a request timestamp can have without returning ErrTimestampSkew.
Now is a func() time.Time that is used by the package to get the current time.
# Structs
No description provided by the author
No description provided by the author
CredentialError is returned by a CredentialsLookupFunc when the provided credentials ID is invalid.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
A CredentialsLookupFunc is called by NewAuthFromRequest after parsing the request auth.
A NonceCheckFunc is called by NewAuthFromRequest and should make sure that the provided nonce is unique within the context of the provided time.Time and Credentials.