-
-
Notifications
You must be signed in to change notification settings - Fork 3k
-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cannot login with linkedin/linkedin_oauth2 #1641
Comments
Please upgrade to 0.37.1 |
Hello, since yesterday I can't signin with linkedin connector anymore. I've been using the linkedin_oauth2 provider for about 2 years and I've already:
This is the error I get Does anyboby have the same issue? Regards, |
@fab10m Hi, did you manage to figure out what went wrong? Having the same issue |
Yes, I did. In my case the error was originated by the request for a field no longer supported by LinkedIn and the presence of the header's variable "x-li-src: msdk. |
@Bragegs Hi, did you manage to figure out what went wrong. I'm stuck too |
This still is there, django-allauth = "~=0.45.0" I am on. |
i am have same issue: |
The flow implemented in this library needs to access me api of linkedin to get user details but i think linkedin has removed the access of these apis as per their new restrictions. Their new flow requires to use https://api.linkedin.com/v2/userinfo api. I created my custom linkedin adapter using The document for their new flow, OpenID is below: |
new app in linkedin used openid_connect instead of use oauth2 so u need to use openid_connect config: |
i used this settings but i have error OpenIDConnectAdapter.init() missing 1 required positional argument: 'provider_id' |
I configured linkedin social application and tried to integrate it with both, 'allauth.socialaccount.providers.linkedin' and 'allauth.socialaccount.providers.linkedin_oauth2' but cannot login. This is my settings for both:
'linkedin': { 'SCOPE': [ 'r_emailaddress', 'r_basicprofile', ], 'PROFILE_FIELDS': [ 'id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url', ] }, 'linkedin_oauth2': {'SCOPE': ['r_basicprofile', 'r_emailaddress'], 'PROFILE_FIELDS': ['id', 'first-name', 'last-name', 'email-address', 'picture-url', 'public-profile-url', 'skills', 'headline']},
and this is my code in template:
for linkedin oauth2:
<a href="{% provider_login_url 'linkedin_oauth2' %}" next="/"> <button type="button" class="btn btn-linkedin waves-effect waves-light m-t-20"> <i class="fa fa-linkedin m-r-5"></i> Linkedin </button> </a>
for linkedin:
<a href="{% provider_login_url 'linkedin' %}" next="/"> <button type="button" class="btn btn-linkedin waves-effect waves-light m-t-20"> <i class="fa fa-linkedin m-r-5"></i> Linkedin </button> </a>
When using linkedin provider, the url /accounts/linkedin/login/ displays error message that there was an error while logging in.
When using likedin_oauth2 provider, the url /accounts/linkedin_oauth2/login/ redirects to https://www.linkedin.com/uas/oauth2/authorization?scope=&state=uCBu7AwHib3H&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Faccounts%2Flinkedin_oauth2%2Flogin%2Fcallback%2F&response_type=code&client_id=78ooxchybs44b and this URL cannot be decoded.
Please guide me what I am doing wrong?
The text was updated successfully, but these errors were encountered: