auth

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AuthHeader = "Authorization"
View Source
const GithubAuthHeader = "X-Hub-Signature-256"

Variables

View Source
var AppValueKey appValueKey = "app_value_key"
View Source
var ErrInvalidToken = errors.New("invalid authorization header")
View Source
var TypeKey typeKey = "origin"

Functions

func AuthMiddelware

func AuthMiddelware(next http.Handler) http.Handler

func CheckAuthToken added in v0.4.0

func CheckAuthToken(token []byte) bool

func NewUserToken

func NewUserToken(user string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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