TheProjecter / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 1 forks source link

GooglePlus integration no longer works #351

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to http://labs.3pillarglobal.com/socialauthdemo/importContacts.do
2. Click on GooglePlus icon
3. Login to your google account and grant access

What is the expected output? What do you see instead?
Expected output: you should see a contacts list

Istead:
org.springframework.web.util.NestedServletException: Request processing failed; 
nested exception is org.brickred.socialauth.exception.ServerDataException: 
Failed to parse the contacts from 
response.https://www.google.com/m8/feeds/contacts/default/full/?max-results=1000
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)

root cause

org.brickred.socialauth.exception.ServerDataException: Failed to parse the 
contacts from 
response.https://www.google.com/m8/feeds/contacts/default/full/?max-results=1000
    org.brickred.socialauth.provider.GooglePlusImpl.getContactList(GooglePlusImpl.java:285)
    com.threepillar.labs.socialauthsample.controller.SuccessController.importContacts(SuccessController.java:107)
    com.threepillar.labs.socialauthsample.controller.SuccessController.getRedirectURL(SuccessController.java:67)
    sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    java.lang.reflect.Method.invoke(Unknown Source)
    org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
    org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
    org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
    org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
    com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)

What version of the product are you using? On what operating system?
I believe your demo is using SocialAuth-4.6. I have also tried with SocialAuth 
4.4/4.5

Please provide any additional information below.

Original issue reported on code.google.com by prashant...@pixalsoft.com on 30 Jun 2014 at 7:26

GoogleCodeExporter commented 9 years ago
You are using goole provider not google plus.

If you are registering your application on google, it provides key/secret for 
OAuth2.0, so you'll have to use GooglePlus provider instead of google.

Make entry in oauth_consumer.properties file

googleapis.com.consumer_key = XXXXX
googleapis.com.consumer_secret = XXXXXX

And use googleplus as a provider key.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 2 Jul 2014 at 7:49

GoogleCodeExporter commented 9 years ago
Hi Tarun,

I'm not talking about my application. I'm using the demo application provided 
by you guys here: http://labs.3pillarglobal.com/socialauthdemo/importContacts.do

All I did was click on the GooglePlus icon and try to get the Gmail contacts. 
This used to work.

Can you please let me know if I'm doing something wrong?

Thanks
Prashant

Original comment by prashant...@pixalsoft.com on 2 Jul 2014 at 3:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It is working fine now.
There is no change in code. Just added contact API permission from google 
console for my application.

If you have registered your application then go to the following link:-
https://code.google.com/apis/console#access

Here you can go to the APIs & Auth section and click on APIs
and On the Contacts API.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 27 Aug 2014 at 4:28

GoogleCodeExporter commented 9 years ago
Many thanks !! It works now.

Original comment by prashant...@pixalsoft.com on 27 Aug 2014 at 10:59