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

Commits on Dec 29, 2020

  1. Fix tests to support PyJWT>=2.0.0

    The new version changed `jwt.encode()` to return a str
    instead of a bytes. The change preserves compatibility
    with both new and older PyJWT
    shaib committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    b462a53 View commit details
    Browse the repository at this point in the history
  2. Fix Azure backends to support PyJWT>=2.0.0

    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})`
    shaib committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    39e4756 View commit details
    Browse the repository at this point in the history
  3. Fix apparent typo in call to jwt.decode()

    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.
    shaib committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4937977 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cf5be6c View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2020

  1. Skip a GoogleOpenId test on Python 3 because it freezes

    ... and appears unrelated to the changes at hand
    shaib committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    3809cd1 View commit details
    Browse the repository at this point in the history