Announcement Announcement Module
Collapse
No announcement yet.
Using pre signin parameters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using pre signin parameters

    Hi,

    I'm trying to use the pre-signin parameters in 1.1.0.M2, but they are not being used in the oauth url being constructed.
    Since the signin code is like this:

    PHP Code:
    MultiValueMap<StringStringparameters = new LinkedMultiValueMap<StringString>(); 
        
    preSignIn(connectionFactoryparametersrequest);
        try {
            return new 
    RedirectView(webSupport.buildOAuthUrl(connectionFactoryrequest));
        } catch (
    Exception e) {
            
    logger.error("Exception while building authorization URL: "e);
            return 
    redirect(URIBuilder.fromUri(signInUrl).queryParam("error""provider").build().toString());
        } 
    I don't really see how to get the parameters into the url, since they aren't passed to the buildOAuthUrl method.

    Kind regards,
    Marc
    Last edited by mschipperheyn; Mar 24th, 2013, 08:32 PM.

  • #2
    What's in stack trace? I'm not a magician, sorry...

    I make FB auth url contruction like:
    Code:
            String authorizationUrl = webSupport.buildOAuthUrl(connectionFactory, request);
            String sessionId = request.getSessionId();
            if (sessionId != null && !sessionId.isEmpty()) {
                authorizationUrl += "&state=" + sessionId;
            }
            authorizationUrl += "&scope=email";
            return authorizationUrl;
    ...............

    Comment


    • #3
      Yes, this is the subject of SOCIAL-306. Coincidentally, I was planning on reviewing that today and correcting it. Now that has been done and should be in the next snapshot build (which is building as I post this).

      Comment

      Working...
      X