mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
0be883befb
* feat: customizable static assets This change provides the means to override specific assets from the embedded Go FS with files situated on disk. We only allow overriding the following files currently: * favicon.ico * logo.png * refactor(server): make logo string a const * refactor(suites): override favicon and use ntp3 in traefik2 suite * test(suites): test logo override in traefik2 suite * test(suites): test asset override fallback in traefik suite Closes #1630.
33 lines
920 B
Go
33 lines
920 B
Go
package middlewares
|
|
|
|
const jwtIssuer = "Authelia"
|
|
|
|
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"}
|