Google API错误:redirect_uri_mismatch

Google API错误:redirect_uri_mismatch

问题描述:

我注册了我的应用程序的客户端ID和客户端密钥 ,用于在GoogleAppEngine上运行我的Web应用程序。 我的应用使用Directory API将用户信息与Google Apps同步。Google API错误:redirect_uri_mismatch

发送API请求和响应工作正常, 但有些用户无法从服务器获得响应。 API的回应是:

redirect_uri_mismatch

使用Directory API时是否有限制的用户数量? 用户在Google Apps域中具有管理员角色。

+0

您在Google开发人员控制台中输入了什么作为重定向uri? – DaImTo

+0

我输入了uri“http://appname.appspot.com/oauth2callback” ,我的问题是,为什么有些用户得到回复“redirect_uri_mismatch” –

您必须输入URI的方案:http或https

+0

我输入URI为“http://appname.appspot.com/oauth2callback”。但是,某些用户的请求和响应看起来不错,但另一个用户API请求失败,并显示“redirect_uri_mismatch”。 –