Replies: 2 comments 1 reply
-
Hi again, I have just gone through the Kratos' implementation of The So is it possible that this was forgotten to be implemented into Kratos when integrating Hydra? |
Beta Was this translation helpful? Give feedback.
-
Hi @ShawnCZek Thank you for taking a look into using So to be clear, Ory Elements doesn't handle any of the logic part of user redirects or logic pertaining to getting the flow data. Ory Elements only handles the rendering part of the Ory flow data which are retrievable through the Ory SDKs / APIs. To get an idea of how you can use the You then need to initialise the consent flow yourself and pass that to the Here is an example from a community member in our ExpressJS example We have this implemented in the Ory Account experience which is the managed ui that comes with your Ory Network project. We still need to add it to our open source examples. |
Beta Was this translation helpful? Give feedback.
-
Hey,
I am currently struggling with implementing the login challenge into @ory/elements.
I have noticed that the
createBrowserLoginFlow
method ofFrontendApi
from @ory/client is currently supporting the login challenge. However, I fail to see how this is supposed to work on the front end.The response returns
oauth2_login_challenge
. But it cannot be used in the respective update SDK methodupdateLoginFlow
.I would expect that the backend (Kratos) gets this token and accepts the oAuth2 login request. And afterward, returns the
redirect_to
which will be used for redirecting to the consent page.So my question is, what is the correct implementation of accepting/rejecting oAuth2 login request together with @ory/elements?
Thank you in advance for your help.
// EDIT: as a note, my code (just for testing) is literally based on the provided example in the respective repository.
Beta Was this translation helpful? Give feedback.
All reactions