I have a Rails 3 application using Devise for authentication.
In addition to manual email authentication, I also have a facebook connection that allows for single sign-on via facebook.
The next step is to connect. Is there an easy way to integrate the linkedin API for development?
(The naive approach to the definition
in config / initializers / devise.rb resulted in the error message "Link authorization not specified" from linkin).
config.oauth :linkedin, 'MY_APP_ID','MY_APP_SECRET',
:site => 'https://api.linkedin.com/',
:authorize_path => '/uas/oauth/authorize',
:access_token_path => '/uas/oauth/accessToken'
Thank!
Update: Thanks for the (incredibly) quick answers. I was hoping not to change the application to add linkedin authentication using omniauth or a similar solution. However, now I see that the linked response does not return the email that is used as the primary key for my users, and therefore I cannot use authentication the way I use facebook (in the Ryan solution, it allows you to determine the email address separately, if not returned from twitter, but this is not enough for my purposes).
Another update: The developer now has omniauth support, and it works beautifully. Checkout this link .
source
share