1

I've installed an Android application. The first time I ran it an OAuth2 window showed up asking me whether I wanted to grant the application access to some scope within my user account.

However now I've gone to https://accounts.google.com/b/0/IssuedAuthSubTokens?hl=en and revoked access, but my application still runs normally without asking me the question of whether to allow it access to my account or not.

The application is the sample Auth activity that comes with Google Play extras.

What can I do to get the application to display the question in a popup window again? I've tried uninstalling and reinstalling but I cannot get that window back and I need it for testing purposes.

Thanks.

4

1 回答 1

2

尝试通过向https://accounts.google.com/o/oauth2/revoke发出请求以编程方式撤销令牌, 并将令牌作为参数包含在内。像这样的东西::

卷曲https://accounts.google.com/o/oauth2/revoke?token= {token}

令牌可以是访问令牌或刷新令牌。如果令牌是访问令牌并且有相应的刷新令牌,那么刷新令牌也会被撤销。

如果撤销处理成功,则响应的状态码为 200。对于错误情况,返回状态码 400 和错误码。

错误代码会让您了解撤销是否成功。

于 2013-05-15T14:12:20.613 回答