adn-agov-iam-project/patterns/826166d230a6a4849f2837ae_re.../returnTimeoutButKeepSession...

12 lines
351 B
Groovy

import ch.nevis.esauth.auth.engine.AuthResponse
response.setIsDirectResponse(true)
response.setContentType('text/html; charset=UTF-8')
response.setContent('Timeout')
response.setHttpStatusCode(205)
response.setHeader('IDP-AUTH', 'Timeout')
// CONTINUE to keep the other request beeing processed
response.setStatus(AuthResponse.AUTH_CONTINUE)
return