c0debrain / socialauth

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

ContactLists not working from Google #359

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to login using Google
2. I have used Google Plus

What is the expected output? What do you see instead?
Login should be successful

What version of the product are you using? On what operating system?
socialauth4.5 and 4.6 have the same problem

Please provide any additional information below.
Exception below
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.sis.controller.SuccessController.getRedirectURL(SuccessController.java:56)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.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:215)
    org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
    org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:690)
    org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause

java.io.IOException: Server returned HTTP response code: 403 for URL: 
https://www.google.com/m8/feeds/contacts/default/full/?max-results=1000
    sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    org.brickred.socialauth.util.Response.getInputStream(Response.java:67)
    org.brickred.socialauth.provider.GooglePlusImpl.getContactList(GooglePlusImpl.java:282)
    com.sis.controller.SuccessController.getRedirectURL(SuccessController.java:56)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.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:215)
    org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
    org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)
    org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:690)
    org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

Original issue reported on code.google.com by sharath....@gmail.com on 17 Aug 2014 at 5:21

GoogleCodeExporter commented 9 years ago
Modifying the recreation Steps

I am trying to login using socialauth from my website linking to Google Plus.
The link used is socialauth.do?id=googleplus
It was working previously. Now, it has stopped working with the above mentioned 
error

Original comment by sharath....@gmail.com on 17 Aug 2014 at 5:33

GoogleCodeExporter commented 9 years ago
For the demo it is working.
Check http://labs.3pillarglobal.com/socialauthdemo

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

Click on API Projects.

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:31

GoogleCodeExporter commented 9 years ago
Thank you very much Tarun. After I set the Contact API to ON as you suggested, 
it worked.

Original comment by sharath....@gmail.com on 28 Aug 2014 at 6:01

GoogleCodeExporter commented 9 years ago
Gr8.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 6 Oct 2014 at 4:26