Password Autocomplete for iOS App

In iOS 11, they entered a password for autocomplete, which fills in the username and password in the iOS application in the same way as in Safari. The user first goes to the site, logs in, storing the username and password in the key chain and then opening the application. fields are automatically filled in, username and password

can it be implemented in other ways, for example, when I first logged in to the application, and then, going to the website through Safari, it automatically fills in the username and password?

Does it have documentation or articles?

+5
source share
2 answers

I asked about this in the development laboratories at WWDC and said that this is possible. The key point is that the new password autofill is based on the existing API General Web Credentials , which works both ways. If you use this API to save credentials from your application, they will be available in Mobile Safari. Shared credentials on the Internet were the subject of the 2014 WWDC session .

I have not tried it yet, but based on the source, I am sure that it should work.

+1
source

Editing my answer:

It seems like it's possible. The same association can be seen in SharedWebCredentials , which is released in iOS8. You can use SharedWebCredentials in both directions. From application to website and website to application. Assume that password auto-completion in iOS11 is done on top of this.

This is how the connection will happen.

We have a certificate of law for the application in which we will provide the domain with which we need to contact. Then we have a website on which we will store the JSON information associated with this website. In this JSON you should put your package id . Therefore, when the user saves these passwords and logs in through the application. The application permissions file will then provide the safari web address. Safari will bring this JSON file and confirm the package identifier is the same or not. If upon successful completion, the username and password will be filled.

For More Information: Password Autocomplete in iOS 11

+3
source

Source: https://habr.com/ru/post/1269715/


All Articles