iOS 11 password autofill doesn't save password to the Keychain

岁酱吖の 提交于 2019-12-21 12:18:38

问题


I'm using Password Autofill feature in the iOS app.

I've set the needed textContentType properties to username and password respectively. Also, I've enabled iCloud Keychain in the iOS settings.

The bar appears, I'm able to fill in the login form with the credentials from other apps. However, I'm unable to save the credentials I enter.

Is it possible to Save credentials to the keychain without associating the app with the website, like shown in the WWDC session?


回答1:


No, It's not possible to add credentials to ICloud Keychain without associating a domain to it. Apple needs it to identify and suggest the credentials based on that registered domain.

looks like this feature existed since IOS 8, In IOS 11 they just updated it to make it easier by adding textContentType in uitextinputtraits and automating the process a bit.

You can manage Icloud Keychain Credentials Using Security.SecSharedCredentials Apis

SecAddSharedWebCredential - you can provide your domain(yourwebsite.com), userName, and Password as params to be saved in ICloud Keychain. from the looks of it will show an alertView for confirmation to save/update.



来源:https://stackoverflow.com/questions/49492152/ios-11-password-autofill-doesnt-save-password-to-the-keychain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!