authmdw

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 7 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

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) AllowedOrigin

func (m *Middleware) AllowedOrigin(r *http.Request, origin string) bool

func (*Middleware) AuthenticateAPISecret

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

func (*Middleware) AuthenticateUser

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

Jump to

Keyboard shortcuts

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