Quantcast
Channel: Spring Community Forums - Social
Viewing all articles
Browse latest Browse all 145

Can not set scope with a request parameter using SocialAuthenticationFilter

$
0
0
Hi:
I used to use ProviderSignInController. I moved to SocialAuthenticationFilter.
I have this code.
Code:

<form id="fb_signin" action="<c:url value="/signin/facebook"/>" method="POST">
  <input type="hidden" name="scope" value="email" />
</form>

scope request parameter is ignored by SocialAuthenticationFilter.

As far as I dug into the code, I found the solution is to call FacebookAuthenticationService.setScope("email") after I create it.

The problem with that is that scope is fixed for the entire webapp. I won't be able to
Code:

<form id="fb_signin" action="<c:url value="/signin/facebook"/>" method="POST">
  <input type="hidden" name="scope" value="email, publish_stream" />
</form>

Am I missing something?

Thanks!

Viewing all articles
Browse latest Browse all 145

Trending Articles