Results 1 to 2 of 2

Thread: Linkedin “Scope” Variable not working

  1. #1

    Default Linkedin “Scope” Variable not working

    I'm having trouble setting up a connection to Linkedin Api using Spring Social.

    I am passing the "scope" variable "r_emailaddress" as a hidden field with the form to retrieve the email address but it's not working - I don't see the email_address permission like you do here. https://developer.linkedin.com/sites.../gp-dialog.png

    I am following the Spring Social Showcase Application Example. I should add, the Social Application there is no hidden scope field.

    It works fine with Facebook.

    Form
    Code:
    <form name="linkedinin_signin" id="linkedin_signin" action="${linkedin_uri}" method="POST">
        <input type="hidden" name="scope" value="r_basicprofile, r_emailaddress" />
        <input type="image" src="${linkedin_img_uri}" />
    </form>

  2. #2
    Join Date
    Aug 2004
    Posts
    1,074

    Default

    It works for Facebook because Facebook is an OAuth2 provider and has specification support for the "scope" parameter. Therefore, Spring Social has built-in support for it and uses it if it's there.

    It doesn't work for LinkedIn because LinkedIn is an OAuth 1 provider and its "scope" parameter is a LinkedIn extension to the spec. As it is now, Spring Social is not expecting a scope parameter for OAuth 1 providers, so it ignores it if given one.

    That's the subject of the other thread (http://forum.springsource.org/showth...ing-user-email) where we're discussing adding that feature to Spring Social. May I suggest that we confine the discussion to that thread so that we don't get lost managing it in multiple threads?
    Craig Walls
    Spring Social Project Lead

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •