mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
remove SSOwAuthRedirect
This commit is contained in:
parent
547e15157b
commit
24e7755e8a
1 changed files with 0 additions and 13 deletions
13
helpers.lua
13
helpers.lua
|
@ -209,18 +209,6 @@ function delete_cookie()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Expires the redirection cookie
|
|
||||||
function delete_redirect_cookie()
|
|
||||||
local expired_time = "Thu, 01 Jan 1970 00:00:00 UTC"
|
|
||||||
local cookie_str = "; Path="..conf["portal_path"]..
|
|
||||||
"; Expires="..expired_time..
|
|
||||||
"; Secure"..
|
|
||||||
"; HttpOnly"..
|
|
||||||
"; SameSite=Lax"
|
|
||||||
ngx.header["Set-Cookie"] = "SSOwAuthRedirect=" ..cookie_str
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- Validate authentification
|
-- Validate authentification
|
||||||
--
|
--
|
||||||
-- Check if the session cookies are set, and rehash server + client information
|
-- Check if the session cookies are set, and rehash server + client information
|
||||||
|
@ -1073,7 +1061,6 @@ end
|
||||||
|
|
||||||
-- Set cookie and go on with the response (needed to properly set cookie)
|
-- Set cookie and go on with the response (needed to properly set cookie)
|
||||||
function pass()
|
function pass()
|
||||||
delete_redirect_cookie()
|
|
||||||
logger.debug("Allowing to pass through "..ngx.var.uri)
|
logger.debug("Allowing to pass through "..ngx.var.uri)
|
||||||
|
|
||||||
-- When we are in the SSOwat portal, we need a default `content-type`
|
-- When we are in the SSOwat portal, we need a default `content-type`
|
||||||
|
|
Loading…
Reference in a new issue