Open mmahalwy opened 5 years ago
@mmahalwy You need to request permissions from LinkedIn. https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program
or use without scope
:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :linkedin, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET']
end
I am also facing the same error with version - (1.0.0) of this gem. Please help anyone. For the detail issue - https://stackoverflow.com/questions/62714338/linkedin-omniauth-gem-omniauth-linkedin-oauth2-giving-authentication-failure
Remove scope or field both and try this:
config.omniauth :linkedin, ENV['LINKEDIN_CLIENT_ID'], ENV['LINKEDIN_CLIENT_SECRET']
Mohamed El Mahallawy, @decioferreira how can we solve this issue, I am having same error, I have used devise (ominiauthable), omniauth-linkedin, omniauth-linkedin-oauth2
MY config file devise.rb -
config.omniauth :linkedin, LINKEDIN_APP_KEY, LINKEDIN_APP_SECRET, scope: 'r_liteprofile r_emailaddress'
Please help,
Everthing work fine it redirected to failure mathod and the reason is -
omniauth: (linkedin) Authentication failure! invalid_credentials: OAuth2::Error.