0

我已在https://accounts.google.com/o/oauth2/v2/auth上请求获取授权码,但只收到 400 Oauth 错误!!1. 你能提供请求格式和参数,以便我知道我哪里出错了吗?

Here is request :
https://accounts.google.com/o/oauth2/v2/auth?scope=https://mail.google.com/&redirect_uri=https://www.msn.com&access_type=offline&client_id=*********.apps.googleusercontent.com&response_type=code&include_granted_scopes=true
4

1 回答 1

0

您确实意识到这只是您正在使用的同意网址。之后会有额外的电话。

这是我用来向用户请求同意书的链接。您只需要更改您的重定向 uri。请记住,在该实例中,响应将返回到重定向 uri。

获取https://accounts.google.com/o/oauth2/auth?client_id= {clientid}.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope= https://www.googleapis.com /auth/analytics.readonly&response_type=code

Google 3 Legged OAuth2 Flow中提取的代码

于 2019-09-10T09:18:02.300 回答