2012-08-16 89 views
1

我正在尝试使用SecureSocial 2.当我尝试使用现有帐户时谷歌它给了我错误:SecureSocial 2 with play 2 framework

Error: invalid_client 

scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email 
response_type=code redirect_uri=http://localhost:9000/authenticate/google 
state=736c4f77-14e8-4cde-ac61-7df8796067ba 
client_id=your_client_id 

请告诉我该怎么做才能整理出来。非常感谢。

+0

你正确地通过配置文件配置SecureSocial(https://github.com/jaliss/securesocial/blob/master/samples/java/demo/conf /securesocial.conf)? – 2012-08-16 19:40:36

+0

my ** securesocial.conf **文件与github上的文件完全相同,是否需要进行任何更改? – Nishikant 2012-08-16 20:04:47

回答

2

您必须在Google上注册您的应用程序,该应用程序将提供客户端ID和客户端密钥。

看看这个文档从谷歌:https://developers.google.com/accounts/docs/OAuth2

+0

感谢您的回答,您能否告诉我应该在哪里放置重定向URI。我得到错误**错误:redirect_uri_mismatch ** – Nishikant 2012-08-16 21:44:01

+0

它现在正在工作,我改变了重定向uri。 – Nishikant 2012-08-16 21:55:54

+0

你把重定向uri改成了什么? – 2013-06-25 01:19:01