auth

package
v0.0.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EsSha256 = "es256k1-sha256"
)

Variables

This section is empty.

Functions

func ParseSignatureAuthorizationParts

func ParseSignatureAuthorizationParts(auth string) (map[string]string, error)

ParseSignatureAuthorizationParts parses Authorization value in Header according to `Signature` type.

Types

type AuthenticationMiddleware

type AuthenticationMiddleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(svc *service.Service) *AuthenticationMiddleware

func (*AuthenticationMiddleware) AddURL

func (amw *AuthenticationMiddleware) AddURL(path string, methods ...string)

func (*AuthenticationMiddleware) Middleware

func (amw *AuthenticationMiddleware) Middleware(next http.Handler) http.Handler

Middleware supports signature authentication and responds to the client by generating information necessary for authentication.

Jump to

Keyboard shortcuts

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