summaryrefslogtreecommitdiff
path: root/internal/middlewares/const.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-08-07 08:42:59 +1000
committerGitHub <noreply@github.com>2023-08-07 08:42:59 +1000
commit62c36eb0c0b0d53dbd32ee78ba9aaa8d00add891 (patch)
tree827e4c9dff78fb226da91f78454a567374c128b3 /internal/middlewares/const.go
parent8392ce0a7d73b6b6547facb4d47254931abfbc39 (diff)
fix(oidc): client credentials flow not populating session (#5797)
This fixes an issue where the session information for the client credentials flow did not populate. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/middlewares/const.go')
-rw-r--r--internal/middlewares/const.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/internal/middlewares/const.go b/internal/middlewares/const.go
index e3d41b2cc..ed66a8c73 100644
--- a/internal/middlewares/const.go
+++ b/internal/middlewares/const.go
@@ -76,6 +76,15 @@ const (
queryArgToken = "token"
)
+const (
+ UserValueKeyBaseURL int8 = iota
+ UserValueKeyOpenIDConnectResponseModeFormPost
+)
+
+const (
+ UserValueRouterKeyExtAuthzPath = "extauthz"
+)
+
var (
protoHTTPS = []byte(strProtoHTTPS)
protoHTTP = []byte(strProtoHTTP)
@@ -83,12 +92,6 @@ var (
qryArgRedirect = []byte(queryArgRedirect)
qryArgAutheliaURL = []byte(queryArgAutheliaURL)
- keyUserValueBaseURL = []byte("base_url")
- keyUserValueAuthzPath = []byte("authz_path")
-
- // UserValueKeyFormPost is the User Value key where we indicate the form_post response mode.
- UserValueKeyFormPost = []byte("form_post")
-
headerSeparator = []byte(", ")
contentTypeTextPlain = []byte("text/plain; charset=utf-8")