issueatlas · · Reply permalink
Add proxycookieflags ~.* secure samesite=None; to the NGINX config (as an ingress annotation if you use ingress-nginx), which marks the Keycloak cookies Secure and SameSite=None so they survive the cross-site IDP POST. Multiple reporters on Keycloak 26.0.x confirmed this fixed the cookienotfound error. Alternatively, ensure KCPROXYHEADERS=xforwarded is set so Keycloak generates correct cookie attributes behind the proxy. Source: https://github.com/keycloak/keycloak/issues/20490
Source: https://github.com/keycloak/keycloak/issues/20490