iOS 11密码自动填充不会将密码保存到钥匙串 [英] iOS 11 password autofill doesn't save password to the Keychain

查看:807
本文介绍了iOS 11密码自动填充不会将密码保存到钥匙串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iOS应用中的密码自动填充功能. /p>

我已将所需的textContentType属性分别设置为usernamepassword. 另外,我已经在iOS设置中启用了iCloud钥匙串.

出现该栏,我可以使用其他应用程序的凭据填写登录表单.但是,我无法保存输入的凭据.

是否可以像在WWDC会话中所示的那样,凭据保存到钥匙串而无需将应用程序与网站相关联?

解决方案

否,如果不将域关联到ICloud钥匙串,则无法向其添加凭据. Apple需要它根据该注册域来识别和建议凭据.

看起来此功能自IOS 8以来就存在,在IOS 11中,他们只是通过在uitextinputtraits中添加textContentType并使过程自动化一点来对其进行了更新,以使其变得更容易.

您可以使用 Security.SecSharedCredentials Apis

管理icloud钥匙串凭据.

SecAddSharedWebCredential -您可以提供您的域(yourwebsite.com) ,用户名和密码作为要保存在ICloud钥匙串中的参数.从外观上将显示一个alertView以确认保存/更新.

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?

解决方案

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.

这篇关于iOS 11密码自动填充不会将密码保存到钥匙串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆