goiardi: github.com/ctdk/goiardi/authentication Index | Files | Directories

package authentication

import "github.com/ctdk/goiardi/authentication"

Package authentication contains functions used to authenticate requests from the signed headers.

Index

Package Files

authentication.go

func AuthenticateHeader Uses

func AuthenticateHeader(publicKey string, timeSlew time.Duration, r *http.Request) util.Gerror

AuthenticateHeader authenticates the headers against the provided public key. In addition, this function supports providing a timeSlew, which is how much difference there can be between the host clock and the time in the request header.

func CheckHeader Uses

func CheckHeader(userID string, r *http.Request) util.Gerror

CheckHeader checks the signed headers sent by the client against the expected result assembled from the request headers to verify their authorization.

Directories

PathSynopsis
go-chef/chef

Package authentication imports 18 packages (graph) and is imported by 8 packages. Updated 2017-05-13. Refresh now. Tools for package owners.