Announcement Announcement Module
Collapse
No announcement yet.
Linkedin “Scope” Variable not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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?

    Comment

    Working...
    X