客户端身份验证方案未授权HTTP请求匿名,从服务器收到的身份验证标头是OAuth领域

时间:2018-11-02 11:29:16

标签: google-oauth

HTTP请求未经客户端身份验证方案“匿名”授权。从服务器收到的身份验证标头是“ OAuth realm =“ https://accounts.google.com/OAuthGetRequestToken””。

使用google oauth 2.0调用身份验证令牌时遇到上述错误。 我传递了clientid,clientsecret和用户同意返回的代码。

以下是我的要求

url  : https://accounts.google.com/o/oauth2/token
body : code=******************
&client_id=********************
&client_secret=****************
&redirect_uri=http://localhost/1565/Link/OnAuthorizeButtonClick
&grant_type=authorization_code
content-type : application/x-www-form-urlencoded