jnorthr / socialauth

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

Google oauth2 callback doesn't match any of the request handlers in the Spring provided controller #305

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
Use googleplus provider
2.
Configure a callback in google app
3.
Use it

What is the expected output? What do you see instead?
I expect one of the controller methods matches google callback request, but 
none of them do, as google callback request comes with no query-string 
parameter at all, while all callback methods in the Spring controller require 
at least one parameter.

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

Please provide any additional information below.

Original issue reported on code.google.com by floz...@gmail.com on 14 Oct 2013 at 9:48

GoogleCodeExporter commented 8 years ago
See:

https://code.google.com/p/socialauth/source/browse/trunk/socialauth-spring/src/m
ain/java/org/brickred/socialauth/spring/controller/SocialAuthWebController.java

Original comment by floz...@gmail.com on 14 Oct 2013 at 9:50

GoogleCodeExporter commented 8 years ago
I see in the online example that in your case, google includes the "code" 
parameter, but in my case it is not including it. Any idea why this could be 
happening??

Original comment by floz...@gmail.com on 14 Oct 2013 at 11:27

GoogleCodeExporter commented 8 years ago
It returns "code" in a parameter while redirecting to the application, so it is 
handle by that method in a controller which has a "code" as a request mapping 
parameter.

You can see this parameter in browser by stopping your web server before 
redirecting from googleplus.

Means when google ask for login/password and permission before submitting it 
stop your server and then submit login. You will see the "code" parameter in 
browser URL.

Please make sure google and googleplus are two different providers and 
different ways to register a key/secret in oauth_consumer.properties file.

You can check the following link to configure properites.

https://github.com/3pillarlabs/socialauth/wiki/Sample-Properties

Original comment by tarun.na...@3pillarglobal.com on 15 Oct 2013 at 12:10

GoogleCodeExporter commented 8 years ago

Original comment by tarun.na...@3pillarglobal.com on 12 Nov 2013 at 3:04