2019-04-24 21:52:08 +00:00
|
|
|
package middlewares
|
|
|
|
|
|
|
|
const jwtIssuer = "Authelia"
|
|
|
|
|
2021-07-22 03:52:37 +00: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-24 21:52:08 +00:00
|
|
|
|
2021-07-22 03:52:37 +00:00
|
|
|
const (
|
|
|
|
headerValueXRequestedWithXHR = "XMLHttpRequest"
|
|
|
|
)
|
2019-04-24 21:52:08 +00:00
|
|
|
|
2021-07-22 03:52:37 +00:00
|
|
|
const (
|
|
|
|
contentTypeApplicationJSON = "application/json"
|
|
|
|
contentTypeTextHTML = "text/html"
|
|
|
|
)
|
2019-04-24 21:52:08 +00:00
|
|
|
|
|
|
|
var okMessageBytes = []byte("{\"status\":\"OK\"}")
|
|
|
|
|
2021-07-22 03:52:37 +00:00
|
|
|
const (
|
|
|
|
messageOperationFailed = "Operation failed"
|
|
|
|
messageIdentityVerificationTokenAlreadyUsed = "The identity verification token has already been used"
|
|
|
|
messageIdentityVerificationTokenHasExpired = "The identity verification token has expired"
|
|
|
|
)
|
2021-05-04 22:06:05 +00:00
|
|
|
|
|
|
|
var protoHostSeparator = []byte("://")
|