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

Linkedin OAuth dont work due new Linkedin scopes. #922

Open
arielespinosa opened this issue Jun 18, 2024 · 1 comment · May be fixed by #915
Open

Linkedin OAuth dont work due new Linkedin scopes. #922

arielespinosa opened this issue Jun 18, 2024 · 1 comment · May be fixed by #915

Comments

@arielespinosa
Copy link

Expected behaviour

User can login with Linkedin using OAuth2

Actual behaviour

Got an error due Linkedin scopes

What are the steps to reproduce this issue?

  1. Setup the Django app as documentation.
  2. Linkedin -> ref to login with Linkedin
  3. url path: path('social-auth/', include('social_django.urls', namespace='social')),

Any logs, error output, etc?

Authentication failed: Scope "r_liteprofile" is not authorized for your application

Any other comments?

The issue is due DEFAULT_SCOPE = ["r_liteprofile"] in LinkedinOAuth2 backend class. As soon you remove de defaul value, it's works. Guess the best is use new default values, but, if user define SOCIAL_AUTH_LINKEDIN_OAUTH2_SCOPE settings's var, change DEFAULT_SCOPE value.

@nijel nijel transferred this issue from python-social-auth/social-app-django Jun 25, 2024
@nijel
Copy link
Member

nijel commented Jun 25, 2024

#915 most likely addresses this issue, review wanted.

@nijel nijel linked a pull request Jun 25, 2024 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants