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.
14 lines
587 B
Go
14 lines
587 B
Go
package handlers
|
|
|
|
import "errors"
|
|
|
|
// InternalError is the error message sent when there was an internal error but it should
|
|
// be hidden to the end user. In that case the error should be in the server logs.
|
|
const InternalError = "Internal error."
|
|
|
|
// UnauthorizedError is the error message sent when the user is not authorized.
|
|
const UnauthorizedError = "You're not authorized."
|
|
|
|
var errMissingXForwardedHost = errors.New("Missing header X-Fowarded-Host used to detect target URL")
|
|
var errMissingXForwardedProto = errors.New("Missing header X-Fowarded-Proto used to detect target URL")
|