-
Notifications
You must be signed in to change notification settings - Fork 84
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
Augment autofill with a conditional
get
#694
Comments
So the browser would introspect the token returned by the IdP/AS and parse out the email claim? If so, it is a bit complicated because just because the email is passed in an ID token, doesn't mean it was ever verified. There is an optional As an aside, there have quite a few security incidents in the industry related to this (specifically related to email being used as an identifier where it was assumed to be verified). Even if it is the email provider and IdP are the same, and asserting based on assumed ownership of the identifier, most IdPs allow usernames/email addresses for domains they are not responsible for. For example, I can create a Google account with the identifier "[email protected]". |
I'm not quite clear on the proposal. Is it:
It's also not clear from the notes here whether the email address appears in the autocomplete before or after the FedCM exchange complete. |
The latter being the closest to how WebAuthn autofill works. |
Yeah, I think we'd probably need a filter where the
I'm not quite sure I understand the distinction. I initially thought it was more like the former, but on second read, I think it is the latter. Does my code snippet help clarify that?
Before. |
(Ignoring for now that <form action="./submit.php">
<input type="email" autocomplete="email fedcm">
<input type="text" autocomplete="name fedcm">
<input type="tel" autocomplete="tel fedcm">
<input type="submit">
</form> When I pick the 'verified by Google' email address from the dropdown, does the Promise resolve immediately? What if I also want to pick the 'verified by Google' name? And the 'verified by AT&T' phone number even though Google is also capable of verifying a phone number? I kinda want to say that the result should be communicated through a field on the |
Discussed March 11, with demos (screenshots in minutes). |
There is a big intersection between the data that is available to FedCM and autofill, most notably, verified email addresses. Email addresses, in particular, are interesting because verifying them today is super cumbersome with magic links, so anything that helps there would be great.
I think it would be really cool if we could call FedCM conditionally (much like you can call Passkeys conditionally), and connect it to autofill.
Here is more or less what I have in mind:
It is not clear to me what the UX would look like, but here is more or less what I have in mind:
This isn't a particularly new idea (see this presentation from 2021), but I think we have built enough infrastructure in FedCM that this is more adjacent now.
The text was updated successfully, but these errors were encountered: