Cookie path of KEYCLOAK_IDENTITY

Posted on

Hi there,
im trying to use the rh-sso to authenticate. So maybe my understanding is wrong how it should work, therefore im going to explain:
when doing the login via the sso, it sets some cookies like KEYCLOAK_IDENTITY. that cookie is added to all server reqeusts, so the server can verify that the user is logged in.

the problem is now the following: when doing so, the mentioned cookie gets set, but with Path=/auth/realms/myRealm (this seems to be the default behaviour). this path setting means that the browser will only send the cookie if im navigating to a page like /auth/realms/myRealm/index.html (which is below the set path). but i want to have the Path=/ that it doesnt matter on which sub path im navigating to, the cookie is always sent.
where do i configure these things? also would like to manually set the domain for the cookie

greetings,
georg

Responses