【问题标题】:ASPasswordCredential - from where?ASPasswordCredential - 从哪里来?
【发布时间】:2019-12-06 07:35:43
【问题描述】:

当使用 Sign in with Apple 时,有一个 ASPasswordCredential 选项可以从 iCloud 钥匙串中提取密码。尽管在钥匙串中存储东西的“位置”上,我找不到详细信息。即我如何知道在哪些密钥下存储用户或密码详细信息。

【问题讨论】:

    标签: swift icloud keychain apple-sign-in


    【解决方案1】:

    它似乎与密码自动填充有关,自 iOS 12 起可用(请参阅https://developer.apple.com/documentation/authenticationservices 中的基于密码的登录部分)。 因此,如果您的应用已经具备此功能,您可以将现有用户与其新的 Apple ID 帐户相关联。

    【讨论】:

    • 最近试过了。密码自动填充就像您手动输入密码一样。我找到的唯一信息:raywenderlich.com/4875322-sign-in-with-apple-using-swiftuiThe other possibility, when using Sign In with Apple, is the end user will select credentials which are already stored in the iCloud keychain for the site.
    • 最有趣的是,@VyachaslavGerchicov 链接的 raywenderlich 教程的作者是提出这个问题的人! :D
    猜你喜欢
    • 2013-10-20
    • 2011-08-02
    • 1970-01-01
    • 2012-10-20
    • 1970-01-01
    • 1970-01-01
    • 2010-09-21
    • 2018-10-05
    • 2010-11-15
    相关资源
    最近更新 更多