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

AttributeError: 'NoneType' object has no attribute 'provider' #571

Closed
i-zhivetiev opened this issue May 6, 2024 · 3 comments
Closed

AttributeError: 'NoneType' object has no attribute 'provider' #571

i-zhivetiev opened this issue May 6, 2024 · 3 comments

Comments

@i-zhivetiev
Copy link
Contributor

Expected behaviour

Users with a GitHub account should be able to log in.

Actual behaviour

Users with a GitHub account cannot log in; instead, they receive an error.

What are the steps to reproduce this issue?

  1. Sign up with your GitHub account.
  2. Log out.
  3. Log in using your GitHub account.

Any other comments?

Affected Version: 5.4.1

This happens because we are trying to compare str and int in the AbstractUserSocialAuth.get_social_auth method.
See https://github.com/python-social-auth/social-app-django/blob/master/social_django/models.py#L63

i-zhivetiev added a commit to i-zhivetiev/social-app-django that referenced this issue May 6, 2024
@nijel
Copy link
Member

nijel commented May 6, 2024

Upgrade social- auth-core, it should be addressed already there

@i-zhivetiev
Copy link
Contributor Author

Thanks, it helps, but version 5.4.1 introduces a breaking change because social-auth-core>=4.4.1 no longer works.

@Spanish93
Copy link

Hi @i-zhivetiev can you prepare a release so all people can benefit of your fix ?
https://github.com/python-social-auth/social-core/wiki/Release-process

Thanks

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

No branches or pull requests

3 participants