-
Notifications
You must be signed in to change notification settings - Fork 74
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
Allow multiple IDPs in the provider array #368
Conversation
[=fetch the accounts list=] algorithm with |manifest| and |provider|. | ||
To <dfn>potentially create IdentityCredential</dfn>, given a list of {{IdentityProviderConfig}} |providers|: | ||
1. Let |accountsList| be an empty list. | ||
1. For each |provider| in |providers|: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. For each |provider| in |providers|: | |
1. In parallel, for each |provider| in |providers|: |
We could/should do these in parallel right?
algorithm with |provider|. | ||
1. If |manifest| is null, return null. | ||
1. Let |providerAccountsList| be the result of running the | ||
[=fetch the accounts list=] algorithm with |manifest| and |provider|. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't @bvandersloot-mozilla say that he was worried about enabling fetching multiple identity providers before we factored into the IdP Sign-in Status API (because, IIRC, that would allow trackers to be introduced here in this list and fail deliberately invisibly)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add an "Issue" here to note that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me modulo Sam's comments
algorithm with |provider|. | ||
1. If |manifest| is null, return null. | ||
1. Let |providerAccountsList| be the result of running the | ||
[=fetch the accounts list=] algorithm with |manifest| and |provider|. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add an "Issue" here to note that.
Can we try to update this PR to contain the latest proposal for the Multiple IdP API @cbiesinger @npm1 and @tttzach ? A PR may be a useful/concrete way that TAG reviews / Mozilla / Webkit can look at to give guidance on (we already have the explainer, which is pretty good, but a spec PR may make things more concrete). |
This is kinda outdated but relevant. Do we plan to update this PR or should we close and later send a separate new PR? |
I think we can keep this closed and we can pick it up later, either from this PR or start over |
Preview | Diff