yubrajpokharel/socialauth

Import Contact from Hotmail is not working, it shows Unexpected auth response

Opened this issue · 0 comments

What steps will reproduce the problem?
1. Download socialauth-android-sdk-2.0.zip
2. Import any of the test projects
3. Try to import hotmail contact 


What is the expected output? What do you see instead?
It suppose to get the "Contact" from hotmail but the output is as follows

org.brickred.socialauth.exception.SocialAuthException: Unexpected auth response 
from 
https://oauth.live.com/token?client_id=00000&redirect_uri=http%3A%2F%2Fopensourc
e.brickred.com%2FForrestiiV3.2%2Fsocialauth&client_secret=rerrYqhii67pTvL3MSHCcs
&code=6c48457f-97af-345d-0b47-2d11091abc93&grant_type=authorization_codeat 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:227)at 
org.brickred.socialauth.oauthstrategy.OAuth2.verifyResponse(OAuth2.java:102)at 
org.brickred.socialauth.provider.HotmailImpl.doVerifyResponse(HotmailImpl.java:1
83)at 
org.brickred.socialauth.provider.HotmailImpl.verifyResponse(HotmailImpl.java:171
)
    at org.brickred.socialauth.SocialAuthManager.connect(SocialAuthManager.java:184)
    at org.brickred.socialauth.SocialAuthManager$$FastClassByCGLIB$$1e842cf3.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
    at org.brickred.socialauth.SocialAuthManager$$EnhancerByCGLIB$$97c48be0.connect(<generated>)
    at org.brickred.socialauth.spring.controller.SocialAuthWebController.callback(SocialAuthWebController.java:145)
    at org.brickred.socialauth.spring.controller.SocialAuthWebController.oauth2Callback(SocialAuthWebController.java:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

What version of the product are you using? On what operating system?

I'm using the socialauth-android-sdk-2.0 

Please provide any additional information below.

I test for a month but it's not working.

Original issue reported on code.google.com by CS.SVI...@gmail.com on 25 Jul 2014 at 6:23