ServiceNow SSO with Keycloak IDP. Everytime on Login, all user's are redirected to Logout


I have tried integrating Service Now SSO with Keycloak as IDP.

I have used OpenId protocol for this.

Everything works fine. The user session is created in keycloak as expected.

But on redirection, ServiceNow is redirecting to logout imeediately.

Sounds like a problem with ServiceNow. If you can post your logs and a HAR of the browser session, we might be able to help you debug.