signature

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerWrapper

type HandlerWrapper struct {
	*resthandler.AuthHandler
	// contains filtered or unexported fields
}

HandlerWrapper authenticates request before calling handler.

func NewHandlerWrapper

func NewHandlerWrapper(handler common.HTTPHandler, authCfg *resthandler.Config, s spi.Store,
	verifier signatureVerifier, tm authTokenManager) *HandlerWrapper

NewHandlerWrapper returns a new 'authenticated' handler. It verifies both tokens and signatures before proceeding.

func (*HandlerWrapper) Handler

Handler returns the handler function.

func (*HandlerWrapper) Method

func (o *HandlerWrapper) Method() string

Method returns the HTTP method.

func (*HandlerWrapper) Path

func (o *HandlerWrapper) Path() string

Path returns the context path.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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