Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to get /me #48

Open
mmahalwy opened this issue Feb 8, 2019 · 5 comments
Open

Failing to get /me #48

mmahalwy opened this issue Feb 8, 2019 · 5 comments

Comments

@mmahalwy
Copy link

mmahalwy commented Feb 8, 2019

E, [2019-02-07T23:56:35.544889 #45219] ERROR -- omniauth: (linkedin) Authentication failure! invalid_credentials: OAuth2::Error, :
{"serviceErrorCode":100,"message":"Not enough permissions to access: GET /me","status":403}
@killondark
Copy link

@mmahalwy You need to request permissions from LinkedIn.
https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program

@killondark
Copy link

killondark commented Feb 21, 2019

or use without scope:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :linkedin, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET']
end

@Piyush-Chaudhary
Copy link

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

@Sakshi1305
Copy link

Remove scope or field both and try this:

config.omniauth :linkedin, ENV['LINKEDIN_CLIENT_ID'], ENV['LINKEDIN_CLIENT_SECRET']

@utkarsh-maropost
Copy link

utkarsh-maropost commented Feb 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants