Hi,
I have almost finished the development but I run once again in an exception. The login with twitter works great. Now I will login with facebook - This works too in a test application (without Spring security) but doesn't work with my application I will publish.
I get the following error at the browser (at this url: https://graph.facebook.com/oauth/aut...2Ffacebook.htm)
Here are the ajustments I did at facebook:Code:{ "error": { "message": "redirect_uri isn't an absolute URI. Check RFC 3986.", "type": "OAuthException", "code": 191 } }
http://www.bilder-hochladen.net/file...ca-png-rc.html
I did some research and the exception appears in the ProviderSignInController:
The output of System.out.println is:Code:@RequestMapping(value="/{providerId}", method=RequestMethod.POST) public RedirectView signIn(@PathVariable String providerId, NativeWebRequest request) { System.out.println("########################## signIn: " + providerId); ConnectionFactory<?> connectionFactory = connectionFactoryLocator.getConnectionFactory(providerId); try { String oauthUrl = webSupport.buildOAuthUrl(connectionFactory, request); System.out.println("-------------------------- oauthUrl: " + oauthUrl); return new RedirectView(oauthUrl); } catch (Exception e) { return redirect(URIBuilder.fromUri(signInUrl).queryParam("error", "provider").build().toString()); } }
-------------------------- oauthUrl: https://graph.facebook.com/oauth/aut...2Ffacebook.htm
Actually I don't know what I'am doing wrong, I don't have a relative URL - All my URLs ate absolute.
Does anyone know what I'am doing wrong? Maybe https is the problem or maybe the problem is that I don't have a content path (my redirect URL is https://localhost:8443/index.htm)
I would be very appreciate if someone could help me - I have still lost 2 days with this issue.+
Thanks a lot!!
Generic


Reply With Quote