简体   繁体   English

使用 Firebase 撤销 Android 中的 Apple 帐户访问权限

[英]Revoke Apple account access in Android using Firebase

I have implemented apple account authentication in Android by using Firebase我已经使用 Firebase 在 Android 中实现了苹果帐户身份验证

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

We have to revoke the access for apple account in our application.我们必须在我们的应用程序中撤销对苹果帐户的访问权限。 For iOS, authorisation code can be fetched from apple SDK and can revoke the access by using backend service code.对于iOS,授权码可以从苹果SDK获取,可以通过后台服务码撤销访问。

In Android, we can get Firebase Auth Token ID.在 Android 中,我们可以得到 Firebase Auth Token ID。 Can we use token ID as authorisation code to revoke the access.我们可以使用令牌 ID 作为授权码来撤销访问权限吗? If not, do we have any other way to revoke the access from Android client application.如果没有,我们是否有任何其他方式来撤销 Android 客户端应用程序的访问权限。

As I understand it, you want to keep the user account with one or more other sign-in methods and only unlink the user's Apple sign-in.据我了解,您希望使用一种或多种其他登录方法保留用户帐户,并且仅取消链接用户的 Apple 登录。

This might be what you are looking for: https://firebase.google.com/docs/auth/android/account-linking#unlink-an-auth-provider-from-a-user-account这可能是您正在寻找的内容: https://firebase.google.com/docs/auth/android/account-linking#unlink-an-auth-provider-from-a-user-account

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Apple 登录 - 使用 Firebase 实现 Android - Sign in With Apple - Android Implementation with Firebase Flutter:如何获取 Apple 凭据以将 Apple 帐户链接到我的 firebase 应用程序上的帐户? - Flutter: how do I get Apple credential to link an apple account to an account on my firebase app? 使用 flutter firebase 创建帐户 - Create account using flutter firebase 如何使用 Go 从 firebase 应用程序创建的服务帐户生成访问令牌 - How to generate an access token from a service account created from firebase app using Go 苹果登录 android FireBase Auth 有问题 - Apple login in android with FireBase Auth has problem 如何在 Flutter Android 上编写 Firebase 用 Apple 登录的功能 - How to write Firebase Functions for Sign in with Apple on Flutter Android Apple 登录出现错误“Invalid_client”firebase android - Apple Sign in getting error "Invalid_client" firebase android 将一个 android 工作室项目连接到另一个 firebase 帐户 - Connect an android studio proyect to another firebase account 使用 gcloud 服务帐号登录 firebase - Login to firebase using gcloud service account firebase账号删除后,如何解除链接的google账号的访问权限? - How to remove the access rights to a linked google account after the deletion of an account at firebase?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM