summaryrefslogtreecommitdiff
path: root/internal/middlewares/const.go
diff options
context:
space:
mode:
authorClement Michaud <clement.michaud34@gmail.com>2019-11-17 11:47:07 +0100
committerClément Michaud <clement.michaud34@gmail.com>2019-11-17 16:30:33 +0100
commit3b2d733367c88621e4178301f2bcb4bc03613eee (patch)
tree41ac41fc5b6cece04db85a08bfa7c32a022f7354 /internal/middlewares/const.go
parenta06b69dd458e756f1a3d6867eb5b9f54560e2ee1 (diff)
Move source code into internal directory to follow standard project layout.
https://github.com/golang-standards/project-layout
Diffstat (limited to 'internal/middlewares/const.go')
-rw-r--r--internal/middlewares/const.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/middlewares/const.go b/internal/middlewares/const.go
new file mode 100644
index 000000000..3959044fb
--- /dev/null
+++ b/internal/middlewares/const.go
@@ -0,0 +1,18 @@
+package middlewares
+
+// JWTIssuer is
+const jwtIssuer = "Authelia"
+
+const xForwardedProtoHeader = "X-Forwarded-Proto"
+const xForwardedHostHeader = "X-Forwarded-Host"
+const xForwardedURIHeader = "X-Forwarded-URI"
+
+const xOriginalURLHeader = "X-Original-URL"
+
+const applicationJSONContentType = "application/json"
+
+var okMessageBytes = []byte("{\"status\":\"OK\"}")
+
+const operationFailedMessage = "Operation failed"
+const identityVerificationTokenAlreadyUsedMessage = "The identity verification token has already been used"
+const identityVerificationTokenHasExpiredMessage = "The identity verification token has expired"