I am trying to connect to GitHub using the Spring Social GitHub project but I am having difficulties with the callback URL.
When I register my application on Github I have to provide a main URL and a callback URL (the app will only register if its a valid http://.. URL for each), and when I navigate my app to connect/github I get directed to the authorisation page, but when I say authorise it returns me to the callback URL i registerred with (I don't have a specific app URL so this cannot redirect to my app).
I have read in teh GitHub docs:
and regarding the redirect_uri paramter it says the following:
The redirect_uri parameter is optional. If left out, GitHub will redirect users to the callback URL configured in the OAuth Application settings. If provided, the redirect URL must match the callback URL's host.
So it seems that the callback URL needs to be overriden at time of invoking, but having looked in the OAuth2Template.class there doesnt seem to be any option to do this.
Has anyone else come across this?