Skip to content
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

Consider: an IDP chooser when unlinked #58

Open
bvandersloot-mozilla opened this issue Dec 16, 2024 · 0 comments
Open

Consider: an IDP chooser when unlinked #58

bvandersloot-mozilla opened this issue Dec 16, 2024 · 0 comments

Comments

@bvandersloot-mozilla
Copy link
Collaborator

bvandersloot-mozilla commented Dec 16, 2024

I think there is a follow up to #40 and #50, and I think is the best alternative direction to take on the balance.

The idea is to only put an IDP chooser in front of the user when there are no accounts matching the current IDP-RP in the connected accounts set. This gives us a lot more freedom in shaping the API's behavior because we no longer need to maintain secrecy of the RP to the IDP. This also facilitates happy-path login, without pushing contextual integrity concerns associated with sign up. I think this represents a fair compromise that prioritizes the users' interest, but is probably gated on FedCM making the same changes, and leaves a lot of freedom for UI innovation.

Here are the particular points of flexibility this gives us in API design:
The credential request can include the RP's information (e.g. client ID, origin) so the IDP can server-side control what accounts should appear where and in what order. This...

  • removes the need for browser-logic to filter by hints, instead allowing us to be a dumb pipe for the IDP-RP.
  • removes the need for a well-known resource, unless we retain it for IDP-picker opt-in where it would not need to be site-level
  • roll the metadata endpoint into the credential endpoint, since we no longer need to have a distinct RP-linked request before we request a credential
  • reduces approved_clients to a bit
  • pushes potentially high-latency IDPs behind an IDP picker, improving multi-idp UX-flows
@johannhof johannhof added the agenda+ Request to add this issue to the agenda of our next telcon or F2F label Dec 17, 2024
@bvandersloot-mozilla bvandersloot-mozilla removed the agenda+ Request to add this issue to the agenda of our next telcon or F2F label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants