mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
a63d55201f
* Explicit document missing X-Forwarded-Proto and X-Fowarded-Host headers. * Add the name of the authorization header in error messages. * Add error and debug logs about X-Original-URL header. * Add error log when not able to parse target URL in verify endpoint. * Fix unit tests.
37 lines
1.6 KiB
Go
37 lines
1.6 KiB
Go
package handlers
|
|
|
|
// TOTPRegistrationAction is the string representation of the action for which the token has been produced.
|
|
const TOTPRegistrationAction = "RegisterTOTPDevice"
|
|
|
|
// U2FRegistrationAction is the string representation of the action for which the token has been produced.
|
|
const U2FRegistrationAction = "RegisterU2FDevice"
|
|
|
|
// ResetPasswordAction is the string representation of the action for which the token has been produced.
|
|
const ResetPasswordAction = "ResetPassword"
|
|
|
|
const authPrefix = "Basic "
|
|
|
|
const AuthorizationHeader = "Proxy-Authorization"
|
|
const remoteUserHeader = "Remote-User"
|
|
const remoteGroupsHeader = "Remote-Groups"
|
|
|
|
var protoHostSeparator = []byte("://")
|
|
|
|
const (
|
|
// Forbidden means the user is forbidden the access to a resource
|
|
Forbidden authorizationMatching = iota
|
|
// NotAuthorized means the user can access the resource with more permissions.
|
|
NotAuthorized authorizationMatching = iota
|
|
// Authorized means the user is authorized given her current permissions.
|
|
Authorized authorizationMatching = iota
|
|
)
|
|
|
|
const operationFailedMessage = "Operation failed."
|
|
const authenticationFailedMessage = "Authentication failed. Check your credentials."
|
|
const userBannedMessage = "Please retry in a few minutes."
|
|
const unableToRegisterOneTimePasswordMessage = "Unable to set up one-time passwords."
|
|
const unableToRegisterSecurityKeyMessage = "Unable to register your security key."
|
|
const unableToResetPasswordMessage = "Unable to reset your password."
|
|
const mfaValidationFailedMessage = "Authentication failed, please retry later."
|
|
const badBasicAuthFormatMessage = "Content of Proxy-Authorization header is wrong."
|