0

我正在使用 OAuth 2.0 访问 Gmail 帐户,仅当我尝试通过 SASL XOAUTH2 机制登录时 收到“ NO Invalid credentials ”的某些帐户。
对于这些帐户,如果我尝试刷新访问令牌,Google 会返回400 Bad Request和 html 响应:

<HTML>
<HEAD>
<TITLE>Error processing OAuth 2 request</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Error processing OAuth 2 request</H1>
<H2>Error 400</H2>
</BODY>
</HTML>

建议?我在谷歌开发者网站上读到,要获得谷歌的支持,我必须在这里写。

编辑: 这是来自 Fiddler 的原始请求,对其他帐户的相同请求效果很好

POST https://accounts.google.com/o/oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: accounts.google.com
Content-Length: 175
Expect: 100-continue
Connection: Keep-Alive

refresh_token=1%2FNyVRzman0nPK9cis4ctiigyBvl1yfsPxb6REXXXXXXXX&client_id=6206XXXXXXXX.apps.googleusercontent.com&client_secret=h4-q_wigfzlwGkGkXXXXXXXX&grant_type=refresh_token
4

1 回答 1

0

I see the request to the token endpoint posted here. Could you show a sample request that your app sent to the authorization endpoint? (The endpoint where the user sees an approval page?)

于 2013-08-14T02:45:37.857 回答