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

Tentative PyJWT-2.0.0-related fixes #537

Conversation

shaib
Copy link
Contributor

@shaib shaib commented Dec 30, 2020

Proposed changes

Coming on top of #536, these are changes which I could not test -- they are not currently causing test failures in the python-social-core test suite, and they are in backends which I do not use and am not familiar with. But they seemed obvious enough to at least suggest.
In particular, I suspect the change in 4937977 may fix the Apple ID issue mentioned in #503 (comment).

Types of changes

Please check the type of change your PR introduces:

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (PEP8, lint, formatting, renaming, etc)
  • Refactoring (no functional changes, no api changes)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Build related changes (build process, tests runner, etc)
  • Other (please describe):

Checklist

  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works

This PR is made on behalf of Matific -- https://www.matific.com -- https://github.com/SlateScience

The new version changed `jwt.encode()` to return a str
instead of a bytes. The change preserves compatibility
with both new and older PyJWT
This takes care of two changes:
- The name ExpiredSignature, deprecated in favor of ExpiredSignatureError,
  was dropped
- `jwt.decode(verify=False)` needs to be rephrased as
  `jwt.decode(options={'verify_signature': False})`
Used `algorithm='RS256'` as is done with jwt.encode() but
in decode() it's plural `algorithms` and it sets which algorithms
are valid -- so it needs to be a list and not a string.
... and appears unrelated to the changes at hand
@aceofwings
Copy link

good stuff, wonder what the status of this is?

@andersk
Copy link
Contributor

andersk commented Jan 9, 2021

GoogleOpenId is discontinued upstream and will be deleted (#515) if, you know, anything happens to this repository ever (#445).

@omab
Copy link
Contributor

omab commented Jan 10, 2021

This change is not needed anymore since #536 and #514 fixed the same issues.

@omab omab closed this Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants