schemaVersion: "1.0"
pattern:
id: "cc7f74cd87053a74a70588ad"
className: "ch.nevis.admin.v4.plugin.nevisproxy.patterns.GenericHostContextSettings"
name: "SessionTimeoutPostprocessing"
properties:
filters: " \n Lua_${name}\n \
\ ch::nevis::isiweb4::filter::lua::LuaFilter\n\
\ \n Script.OutputHeaderFunctionName\n\
\ outputHeader\n \n\
\ \n Script\n \n\
function outputHeader(req, resp)\n if resp:getStatus() == 205 then\n if\
\ resp:getHeader(\"IDP-AUTH\") == \"Timeout\" then\n trace = req:getTracer()\n\
\ trace:debug(\"Changed status to 408, Session Timeout\") \n resp:setStatus(408)\n\
\ resp:removeHeader(\"IDP-AUTH\")\n resp:removeHeader(\"Location\"\
)\n resp:setBody(\"<HTML><BODY>Timeout</BODY></HTML>\"\
)\n resp:send(408)\n end\n end\nend\n \n \n\
\ \n RequestFlags\n \
\ +NEEDS_REDIRECT,+HAS_RESPONSE_CONDITION\n\
\ \n \n\n \n Lua_${name}\n\
\ /SAML2/SSO/*\n \n \
\ \n Lua_${name}\n \
\ /AUTH/RECOVERY/*\n \n"
filterMappings: "manual"
phase: "BEFORE_SANITATION"