late-florist-28893
01/11/2023, 4:44 PMory_hydra_session
cookie to be set so we're using the provided remember option when accepting login challenges. This doesn't work with OIDC Login like Google since the challenge is accepted in the background after the oidc callback (/self-service/methods/oidc/callback/google
) redirects to /oauth2/auth
- is there some configuration key to control the ory_hydra_session
cookie? Seem's like it's using the Kratos Session TTL ...proud-plumber-24205
01/12/2023, 1:57 PMlate-florist-28893
01/12/2023, 2:14 PM/self-service/methods/oidc/callback/google
, instead this happens in the background on ory network's side and the user will be redirected back to the application which initiated the oauth2 flow.
For now i'm unable to control how the login challenge is accepted.
Shouldn't my custom ui be called at one point here?
If this is not possible, I need to control the TTL of the ory_hydra_session
cookie without changing the TTL for the Kratos sessions...proud-plumber-24205
01/12/2023, 4:42 PMlate-florist-28893
01/12/2023, 8:32 PMory_hydra_session
cookie.
I hope I was able to make clear what we are doing here.proud-plumber-24205
01/13/2023, 8:46 AMIf a user now initiates a login via OIDC on one of these pages, he will be redirected to the custom oauth2 login endpoint that we configured in Ory network's oauth-config.Okay this makes sense. Sorry for the bad diagram 😅. I made a quick sketch of the process from what you describe. I guess in this case there must be a redirect URL configuration missing, since Kratos still thinks that the application it should use is the built in Account Experience. I think this might be the issue. Have you checked out https://www.ory.sh/docs/concepts/redirects? Just a note - each project contains an instance of Hydra and Kratos and they are by default integrated with the Account Experience. For them to know about your custom UI, you would need to configure it.
late-florist-28893
01/13/2023, 9:57 AMory_hydra_session
cookie. When I tried the whole thing again, this didn't happen anymore and after a successful login via Google I was redirected to the custom consent ui endpoint that we defined in the oauth2-config and Kratos/Hydra had previously set an ory_hydra_session
cookie 😕
I can't reproduce the first case either, it can't be due to cookies because that also happens in an incognito tab, seems like Kratos/Hydra is caching something here. In any case, I configured everything correctly, but Kratos never redirects me to the custom login ui endpoint with a login challenge. The post login URL can't be the solution, because I need a login challenge as a parameter.
In any case, thank you very much for your time!high-optician-2097
high-optician-2097
high-optician-2097
late-florist-28893
01/13/2023, 2:44 PM