You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should get the profile information from a LinkedIn logged in user using OAuth2
Actual behaviour
Despite changing the scopes in settings.py, the social-auth app automatically adds the 'r_liteprofile' scope which causes an error when trying to send the request via URL, if that scope is removed from the URL to work around this, the social-auth app tries to connect to a deprecated endpoint 'v2/me/'.
What are the steps to reproduce this issue?
Input clear steps to reproduce the issue for a maintainer.
Implement the LinkedIn login settings and views
Set scopes as the following: SOCIAL_AUTH_LINKEDIN_OAUTH2_SCOPE = ['openid', 'profile', 'email']
@ed-zitle did you check out #833? it was shipped with the latest version, documentation is coming soon (works like any other openid connect backend). also it only works with the current development version (as it needs 8fed29b).
Expected behaviour
Should get the profile information from a LinkedIn logged in user using OAuth2
Actual behaviour
Despite changing the scopes in settings.py, the social-auth app automatically adds the 'r_liteprofile' scope which causes an error when trying to send the request via URL, if that scope is removed from the URL to work around this, the social-auth app tries to connect to a deprecated endpoint 'v2/me/'.
What are the steps to reproduce this issue?
Input clear steps to reproduce the issue for a maintainer.
Any logs, error output, etc?
The Django error screen says the following:
HTTPError at /social-auth/complete/linkedin-oauth2/
403 Client Error: Forbidden for url: https://api.linkedin.com/v2/me?projection=(firstName,id,lastName)
Any other comments?
The new endpoint to update to is '/v2/userinfo'
The text was updated successfully, but these errors were encountered: