8000 Comparing 2.10.0...2.10.1 · jpadilla/pyjwt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jpadilla/pyjwt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.10.0
Choose a base ref
...
head repository: jpadilla/pyjwt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.10.1
Choose a head ref
  • 3 commits
  • 4 files changed
  • 3 contributors

Commits on Nov 28, 2024

  1. Merge commit from fork

    This is a bug introduced in version 2.10.0: checking the "iss" claim
    changed from `isinstance(issuer, list)` to `isinstance(issuer,
    Sequence)`.
    
    ```diff
    -        if isinstance(issuer, list):
    +        if isinstance(issuer, Sequence):
                if payload["iss"] not in issuer:
                    raise InvalidIssuerError("Invalid issuer")
            else:
    ```
    
    Since str is a Sequnce, but not a list, `in` is also used for string
    comparison. This results in `if "abc" not in "__abcd__":` being
    checked instead of `if "abc" != "__abc__":`.
    
    Co-authored-by: Fabian Badoi <fabian.badoi@gmail.com>
    jpadilla and fabianbadoi authored Nov 28, 2024
    Configuration menu
    Copy the full SHA
    33022c2 View commit details
    Browse the repository at this point in the history
  2. update changelog

    jpadilla committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    37748dc View commit details
    Browse the repository at this point in the history
  3. fix lint

    jpadilla committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    3ebbb22 View commit details
    Browse the repository at this point in the history
Loading
0