撤消授予我的应用程序Google Drive API的访问权限 [英] Revoke access granted to my app Google Drive API

查看:134
本文介绍了撤消授予我的应用程序Google Drive API的访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何撤消已授予我的Google云端硬盘网络应用程序的访问权限,以便在用户下次使用时再次要求他授予权限?

How do I revoke access that has been granted to my Google Drive web application so that upon the user's next use he is asked for permissions afresh?

推荐答案

如果破坏了数据库中的所有刷新令牌,则在auth请求中添加查询参数roval_prompt = force即可解决此问题.当用户下次批准该请求时,将导致重新发行刷新令牌.

If you clobbered all the refresh tokens in your DB, adding the query parameter approval_prompt=force to the auth request will fix that. It'll result in the refresh tokens getting reissued when the user next approves the request.

这篇关于撤消授予我的应用程序Google Drive API的访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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