Hi Experts,
recently i’m facing a problem related to the hydra cookie. when we test in the local everything works fine for the redirect from hydra to login page because its under same domain localhost. However after we deploy to our dev environment, we cannot receive the cookie when hydra redirect to our login url. I suspect this is because the cookie is rejected by browser because the domain is different from hydra and our app. so my question is how can we specify the domain in hydra if we want to use different subdomains for hydra and our app.
for example this is our hydra auth url:
https://public-hydra.dev-1.app/oauth2/auth?client_id=xilo-client&…
then it will redirect to our login url: https://usersvc.dev-1.app/login?login_challenge=a318ac65193f45fb95d3d10e220f43f3
we cannot capture the cookie from hydra. if is is caused by the domain, how can we tell hydra the domain is dev-1.app instead of public-hydra.dev-1.app so it can share its cookie to other subdomain?
Please let me know if you want more information. thank you in advance.