user

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPHeaderOperator    = "Operator"
	HTTPHeaderSignature   = "Signature"
	HTTPHeaderContentMD5  = "Content-MD5"
	HTTPHeaderContentType = "Content-Type"
	HTTPHeaderDate        = "Date"

	NotAuthHeader = "X-OIDC-Redirect-To"
)

Variables

This section is empty.

Functions

func Middleware

func Middleware(param *param.Param, store sessions.Store,
	config *coreconfig.Config, skippers ...middleware.Skipper) gin.HandlerFunc

Middleware check user is exists in db. If not, add user into db. Then attach a User object into context.

func SignRequest

func SignRequest(ctx context.Context, request *http.Request, publicKey string, secretKey string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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