-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consent Screen page #345
Comments
This seems more complicated than anticipated. The problem is, that the "Consent flow" works fundamentally different from the self-service Kratos flows. The main issue is, that the consent flow does not have UI nodes, but the consent UI does not have them. Most of the re-usable components were built with the UI nodes in mind, so just "re-using" them for the consent flow is not possible as is. Possible solutions:
Out of these options, 2. & 4. would provide the cleanest API for consumers implementing their own UI. However, it's still a complicated implementation path. Another question is how many people would actually use a generic consent screen. Most OAuth2 consent screens I've seen are quite customized, providing more specific information to the user or not letting them choose scopes, etc. |
4 is the best option, but I think we could/should implement a translation layer in Ory Elements that translates the consent and login and logout object from Ory Hydra to the UI nodes. In my view that should be quite straightforward.
Most customers moving off of Auth0 and using OAuth2+Identities use the default implementation, so it definitely is important we use it. |
That also would allow us to - in the future - inject things such as scope translations or descriptions, and other things that are not directly implemented in Ory Hydra and UI specific. |
Preflight checklist
Ory Network Project
No response
Describe your problem
@ory/elements-react does not implement the consent screen yet.
Describe your ideal solution
It should implement a consent screen, following what is implemented in https://github.com/ory/elements/blob/main/src/react-components/ory/user-consent-card.tsx, and https://github.com/ory/kratos-selfservice-ui-node/blob/master/src/routes/consent.ts.
@ory/elements-react:
@ory/nextjs:
Workarounds or alternatives
Version
master
Additional Context
No response
The text was updated successfully, but these errors were encountered: