Hi everyone, have a question about cookie domain.
let’s say we have a domain on www.example.com and the auth server is on auth.example.com
After login, it sets some cookies with these values :
I need to access cookies in www.example.com as well. Any idea how to ask Keycloak to support parent domain ? (have a feeling Path is the problem here but couldn’t find a way to change it from KC config)
Looking at DefaultCookieProvider there’s no way to specify a specific domain or path; you’d have to implement your own CookieProvider to make a way to override the value.
Can I ask why you need access to the cookies that Keycloak is creating? This seems like something you shouldn’t need to do given that you could add any data you need to a claim and return if to the client that way instead.
Hi and Thanks Ben,
I need it for my SSR app ( angular server side rendered app ).
So, in the server side, I need to get data from API ( backend ) that needs a valid token.
The goal is when user hits www.example.com, it sends token to server.