mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
9ceee6c660
This change makes it so only metadata about tokens is stored. Tokens can still be resigned due to conversion methods that convert from the JWT type to the database type. This should be more efficient and should mean we don't have to encrypt tokens or token info in the database at least for now.
31 lines
890 B
Go
31 lines
890 B
Go
package middlewares
|
|
|
|
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"
|
|
)
|
|
|
|
const (
|
|
headerValueXRequestedWithXHR = "XMLHttpRequest"
|
|
)
|
|
|
|
const (
|
|
contentTypeApplicationJSON = "application/json"
|
|
contentTypeTextHTML = "text/html"
|
|
)
|
|
|
|
var okMessageBytes = []byte("{\"status\":\"OK\"}")
|
|
|
|
const (
|
|
messageOperationFailed = "Operation failed"
|
|
messageIdentityVerificationTokenAlreadyUsed = "The identity verification token has already been used"
|
|
messageIdentityVerificationTokenHasExpired = "The identity verification token has expired"
|
|
)
|
|
|
|
var protoHostSeparator = []byte("://")
|
|
var validOverrideAssets = []string{"favicon.ico", "logo.png"}
|