authmdw

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const APIKeyHeader = "X-API-Key" //nolint:gosec
View Source
const APISecretHeader = "X-API-Secret" //nolint:gosec
View Source
const AccessControlAllowOriginHeader = "Access-Control-Allow-Origin" //nolint:gosec
View Source
const AuthProviderHeader = "X-Auth-Provider" //nolint:gosec
View Source
const EncryptionPartHeader = "X-Encryption-Part" //nolint:gosec
View Source
const OpenfortProviderHeader = "X-Openfort-Provider" //nolint:gosec
View Source
const OpenfortTokenTypeHeader = "X-Openfort-Token-Type" //nolint:gosec
View Source
const TokenHeader = "Authorization" //nolint:gosec
View Source
const UserIDHeader = "X-User-ID" //nolint:gosec

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

func New

func New(manager *authenticationmgr.Manager) *Middleware

func (*Middleware) AuthenticateAPISecret

func (m *Middleware) AuthenticateAPISecret(next http.Handler) http.Handler

func (*Middleware) AuthenticateUser

func (m *Middleware) AuthenticateUser(next http.Handler) http.Handler

func (*Middleware) PreRegisterUser added in v0.1.9

func (m *Middleware) PreRegisterUser(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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