yubrajpokharel / socialauth

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

SocialAuthException: Verification code is null #299

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Call service Provider url + login + redirects back to our servlet.
2. Map<String, String> paramsMap = 
SocialAuthUtil.getRequestParametersMap(request);               AuthProvider provider 
= manager.connect(paramsMap);
3.Error comes in line AuthProvider provider = manager.connect(paramsMap)

What is the expected output? What do you see instead?
Expected output: Should complete the action written in servlet.
Instead exception is thrown. SocialAuthException: Verification code is null

What version of the product are you using? On what operating system?
socialauth-java-sdk-4.2.zip
OS - Windows 8 

Please provide any additional information below.Trying to call Facebook.

Original issue reported on code.google.com by sudham...@gmail.com on 24 Sep 2013 at 1:02

GoogleCodeExporter commented 8 years ago
Are you using localhost to run your application?

Original comment by tarun.na...@3pillarglobal.com on 24 Sep 2013 at 2:23

GoogleCodeExporter commented 8 years ago
No Its on our local tomcat server hosted on our local network domain. 
When we do the the authentication  Google APIs client library for Java as shown 
in this link, we are able to complete the process and see the customer profile 
details. 

Original comment by sudham...@gmail.com on 25 Sep 2013 at 7:05

GoogleCodeExporter commented 8 years ago
If you are running your application using http://localhost/.. then it'll not 
work.
Please make sure you are using the same domain what you are using for 
registering your application.

If you are using the same domain then do one thing, when facebook asks for 
authentication then stop your server and then enter facebook credential. After 
successful login facebook will redirect you on your application. Please check 
the url in the browser and verify 'code' paramter is there or not in query 
string.

Please also send me complete log details.

Original comment by tarun.na...@3pillarglobal.com on 25 Sep 2013 at 1:07

GoogleCodeExporter commented 8 years ago
Thanks, my domain was not accessible. Please close issue

Original comment by sudham...@gmail.com on 1 Oct 2013 at 6:38

GoogleCodeExporter commented 8 years ago
Great.

Original comment by tarun.na...@3pillarglobal.com on 1 Oct 2013 at 2:31