【问题标题】:Revoke Apple account access in Android using Firebase使用 Firebase 在 Android 中撤消 Apple 帐户访问权限
【发布时间】:2022-09-25 14:32:51
【问题描述】:

我已经使用 Firebase 在 Android 中实现了苹果帐户身份验证

https://firebase.google.com/docs/auth/android/apple

我们必须在我们的应用程序中撤销对苹果帐户的访问权限。对于 iOS,可以从 Firebase/apple SDK 获取授权码,并且可以使用 JWT 码撤销访问权限。下面是参考链接

https://github.com/jooyoungho/apple-token-revoke-in-firebase

在 Android 中,我们只能获取 Firebase Auth Token ID。

我们如何获取 Android Apple 帐户登录的授权码,或者我们是否有任何其他方式来撤销 Apple 登录帐户的访问权限/令牌。

    标签: android firebase revoke-token apple-authentication


    【解决方案1】:

    据我了解,您希望使用一种或多种其他登录方法保留用户帐户,并且仅取消链接用户的 Apple 登录。

    这可能是您正在寻找的:https://firebase.google.com/docs/auth/android/account-linking#unlink-an-auth-provider-from-a-user-account

    FirebaseAuth
      .getInstance()
      .getCurrentUser()
      .unlink("apple.com");
    

    【讨论】:

    • 感谢@Dennis Alund 的帖子。这里的问题是从我们的应用程序注销后,我们必须自动停止为我们的应用程序使用苹果帐户。可以在我们登录 apple.com 并选择 SignIn with Apple 并停止使用帐户后手动撤销访问权限。这我们必须以编程方式而不是手动完成。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-11
    • 2017-02-24
    • 1970-01-01
    • 2017-10-21
    • 2014-01-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多