authentication

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateHeader added in v0.10.1

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

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.

Types

This section is empty.

Directories

Path Synopsis
go-chef

Jump to

Keyboard shortcuts

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