2019-04-25 04:52:08 +07:00
|
|
|
package middlewares
|
|
|
|
|
|
|
|
const jwtIssuer = "Authelia"
|
|
|
|
|
2021-07-22 10:52:37 +07:00
|
|
|
const (
|
|
|
|
headerXForwardedProto = "X-Forwarded-Proto"
|
|
|
|
headerXForwardedMethod = "X-Forwarded-Method"
|
|
|
|
headerXForwardedHost = "X-Forwarded-Host"
|
|
|
|
headerXForwardedURI = "X-Forwarded-URI"
|
|
|
|
headerXOriginalURL = "X-Original-URL"
|
|
|
|
headerXRequestedWith = "X-Requested-With"
|
|
|
|
)
|
2019-04-25 04:52:08 +07:00
|
|
|
|
2021-07-22 10:52:37 +07:00
|
|
|
const (
|
|
|
|
headerValueXRequestedWithXHR = "XMLHttpRequest"
|
|
|
|
)
|
2019-04-25 04:52:08 +07:00
|
|
|
|
2021-07-22 10:52:37 +07:00
|
|
|
const (
|
|
|
|
contentTypeApplicationJSON = "application/json"
|
|
|
|
contentTypeTextHTML = "text/html"
|
|
|
|
)
|
2019-04-25 04:52:08 +07:00
|
|
|
|
|
|
|
var okMessageBytes = []byte("{\"status\":\"OK\"}")
|
|
|
|
|
2021-07-22 10:52:37 +07:00
|
|
|
const (
|
|
|
|
messageOperationFailed = "Operation failed"
|
|
|
|
messageIdentityVerificationTokenAlreadyUsed = "The identity verification token has already been used"
|
|
|
|
messageIdentityVerificationTokenHasExpired = "The identity verification token has expired"
|
|
|
|
)
|
2021-05-05 05:06:05 +07:00
|
|
|
|
|
|
|
var protoHostSeparator = []byte("://")
|
2021-11-15 15:37:58 +07:00
|
|
|
var validOverrideAssets = []string{"favicon.ico", "logo.png"}
|