diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-01-25 20:36:40 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-25 20:36:40 +1100 |
| commit | 65705a646dfd31e4477af3ffb35c584eb49346a4 (patch) | |
| tree | 882b5df73348c5fc6471e57ef6787c4b04cb68f4 /internal/middlewares/const.go | |
| parent | 78064dec2e9b48308b71ff8862b27e6f8ded5d56 (diff) | |
feat(server): customizable authz endpoints (#4296)
This allows users to customize the authz endpoints.
Closes #2753, Fixes #3716
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
Diffstat (limited to 'internal/middlewares/const.go')
| -rw-r--r-- | internal/middlewares/const.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/internal/middlewares/const.go b/internal/middlewares/const.go index dc5519f2e..5332b6317 100644 --- a/internal/middlewares/const.go +++ b/internal/middlewares/const.go @@ -71,18 +71,20 @@ const ( strProtoHTTP = "http" strSlash = "/" - queryArgRedirect = "rd" - queryArgToken = "token" + queryArgRedirect = "rd" + queryArgAutheliaURL = "authelia_url" + queryArgToken = "token" ) var ( protoHTTPS = []byte(strProtoHTTPS) protoHTTP = []byte(strProtoHTTP) - qryArgRedirect = []byte(queryArgRedirect) + qryArgRedirect = []byte(queryArgRedirect) + qryArgAutheliaURL = []byte(queryArgAutheliaURL) - // UserValueKeyBaseURL is the User Value key where we store the Base URL. - UserValueKeyBaseURL = []byte("base_url") + 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") |
