用户池错误:请输入有效的客户端ID,客户端密码或启用的范围

问题描述:

我正在尝试将Google登录功能添加到我的Android应用程序中,但是我很难确定该怎么做.

I'm trying to add Google Sign In to my Android app but I am having a hard time figuring out how to do it.

我想要做的是,当用户使用Google登录时,我希望他们显示在用户和组"中.我已经可以通过电子邮件登录添加用户,但是我不知道如何使用社交服务提供商.

All I want is to when the user signs in with Google, I want them to show up in my Users and Groups. I already can add a user via email sign in, but I can't figure out how to do this with Social Providers.

我复制了我的应用的客户端ID"(看起来像是xxx-xxx.apps.googleusercontent.com)和客户端机密",它们是从Google Developer Console,凭据,OAuth Web客户端,并且出现此错误.

I copied my app's Client Id (looks like this: xxx-xxx.apps.googleusercontent.com), and Client Secret, which I got from the Google Developer Console, credentials, OAuth web client, and I am getting this error.

错误:请输入有效的客户端ID,客户端密码或启用的范围.

Error: Please enter a valid client id, client secret, or enabled scopes.

我需要输入授权范围吗?我在哪里找到这个?

Do I need to enter an Authorize Scope? Where do I find this?

我猜我是否输入授权范围:

I guess if I enter in Authorize Scope:

个人资料电子邮件openid

profile email openid

有效.不知道我可以在其中输入什么其他信息,但是现在可以正常工作.

it works. Not sure what other info I can enter in there, but for now this works.