-
Notifications
You must be signed in to change notification settings - Fork 0
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
Multi-IdP API: The RP needs a way to know which IdP the user selected #3
Comments
One of the proposals that @npm1 is exploring is exposing the |
Or the configURL provided by the IdP during IdP registration (see w3c-fedid/idp-registration#2) when client used "any" as IdP configURL? |
Yep. |
I read somewhere else that this is already available in Canary for testing? |
Yes! @npm1 added a configURL property to the returned IdentityCredential in version 126.0.6436.0 (requires the multi IDP flag to be enabled) |
This cl here. As @cbiesinger, you should be able to use the I think @npm1 was intending it to be used somewhat like the following: const credential = await navigator.credentials.get({
identity: {
providers: [{
configURL: "https://idp1.example",
// ... other stuff ...
}, {
configURL: "https://idp2.example",
// ... other stuff ...
}, ]
}
});
const {token, configURL} = credential;
// decode the token differently depending on which configURL was used I'm going to mark this as fixed, since there is a different issue tracking putting this into the spec, etc here: Let me know if you give this a try and it doesn't work for you @obfuscoder . |
We should probably keep this open until we actually added this to the spec |
Just wanted to chime in and say this is working for me. |
In the Multi-IdP API proposal, the RP needs to know which IdP was selected from the list of
providers
, so that it can interpret thetoken
that it gets in theIdentityCredential
.The text was updated successfully, but these errors were encountered: