Mobile app version of vmapp.org
Login or Join
Turnbaugh106

: What do I need to do to make my site compatible with Safari's iCloud Keychain so that it saves passwords? I've noticed that a vendor's web application triggers Safari's "suggested password" feature

@Turnbaugh106

Posted in: #Authentication #BrowserSupport #Forms #Javascript #Safari

I've noticed that a vendor's web application triggers Safari's "suggested password" feature at "create password" forms, but does not actually save this password when the form is submitted. That is, after submitting the form and logging back out again, Safari's iCloud Keychain will not include the newly created credentials in the autofill suggestions. (Other credentials from the same domain but different subdomain are presented, so Safari is clearly recognizing the field as a login.)

Similarly, creating a password manually (or logging in with it) is not triggering Safari to remember the password.

It occurs to me that the JavaScript involved in the forms' submissions are obfuscating the action and/or data in some way. What actions are Safari looking for when offering to save passwords?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh106

1 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

Usually, I believe these systems (LastPass, Keychain, Browsers) recognise the requirement for saving fields dependent on your input field name.

As an example, my login forms seem to be compatible simply using two inputs. One a text input with name="username" as an attribute and one password input with name="password" as an attribute. Of course ensure that you also have an input or button with the type of submit.

As long as your code is reflected in such a way, I can't see any reason why it would not work.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme