【问题标题】:User has shared access to his personal account. How to revoke shared access to Google account technically?用户已共享访问他的个人帐户。如何从技术上撤销对 Google 帐户的共享访问权限?
【发布时间】:2017-06-30 07:04:07
【问题描述】:

我可以通过Google OAuth2 管理用户对其个人 Google 帐户的共享访问权限。但是这篇文章不包含如何撤销访问的信息。

我需要删除授权(用户不必从 Google 的已连接应用程序中删除“帐户”)。为此,谷歌有special page。我需要在我的应用程序中使用相同的功能,但我没有找到开发人员的说明。

那么我如何在我的应用程序中为客户端实现 UI API 以让自己撤销他的OAuth2 token(他之前从 Google 共享的令牌)?可能是一些其他的 API 吗?

【问题讨论】:

    标签: rest google-api google-api-client google-authentication


    【解决方案1】:

    撤销范围授权有两种方式。

    您可以使用您链接的页面,关于权限,并手动删除该应用程序。

    或者您可以使用来自 Google 的 token revoke。这是对该 URL 的 GET 请求:https://accounts.google.com/o/oauth2/revoke?token={token}

    【讨论】:

      猜你喜欢
      • 2017-02-17
      • 2021-05-11
      • 1970-01-01
      • 2017-10-21
      • 1970-01-01
      • 2023-04-05
      • 1970-01-01
      • 2021-12-26
      • 2021-06-18
      相关资源
      最近更新 更多