Permalink
Browse files

Pass additional parameters (populated from preSignIn) when building O…

…Auth URL in ProviderSignInController
  • Loading branch information...
1 parent 5999f22 commit e686736cc1e59e59f5723b88d6d5edaa9ad06534 Craig Walls committed Mar 25, 2013
@@ -162,7 +162,7 @@ public RedirectView signIn(@PathVariable String providerId, NativeWebRequest req
MultiValueMap<String, String> parameters = new LinkedMultiValueMap<String, String>();
preSignIn(connectionFactory, parameters, request);
try {
- return new RedirectView(webSupport.buildOAuthUrl(connectionFactory, request));
+ return new RedirectView(webSupport.buildOAuthUrl(connectionFactory, request, parameters));
} catch (Exception e) {
logger.error("Exception while building authorization URL: ", e);
return redirect(URIBuilder.fromUri(signInUrl).queryParam("error", "provider").build().toString());

0 comments on commit e686736

Please sign in to comment.