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
Click to show internal directories.
Click to hide internal directories.