Wrong relaystate
Incorrect RelayState Warning
Section titled “Incorrect RelayState Warning”Error Log
Section titled “Error Log”You may encounter the following warning in server.log:
[AuthenticatorHandler] WARN: Incorrect RelayState value detected.Solution
Section titled “Solution”Enable Session Cookie Support in "AuthN" Module
Section titled “Enable Session Cookie Support in "AuthN" Module”To address this issue, enable session cookie support by implementing these attributes:
"http_session_cookie_secure": Set totrueto ensure cookies are transmitted over secure connections."http_session_cookie_same_site": Set to"NONE"to mitigate CSRF attacks without restrictions.
Configuration Example
Section titled “Configuration Example”In config.json, add the cookie attributes in the AuthN section:
"name": "AuthN","enabled": true,"config": { "context_path": "/saml/authn", "http_session_cookie_secure": true, "http_session_cookie_same_site": "NONE", "webroot_dir": "web"}