| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
As the project is Python 3 only, can remove the compatibility shims in
compat.py.
Type checking has been simplified where it can:
- str is iterable
- bytes is iterable
- use isinstance instead of issubclass
The remaining function bytes_from_int() has been moved to utils.py.
|
| |
|
| |
Now successfully passes when running `tox -e lint`.
|
| |
|
|
|
|
|
|
| |
pyupgrade is a tool to automatically upgrade Python syntax for newer
versions of the language. Running pyupgrade removes several
Python-2-isms that are no longer necessary now that the project is
Python 3 only.
https://github.com/asottile/pyupgrade
|
| |
|
|
|
|
|
|
|
|
|
| |
* Use require options as a list, instead of booleans
Deprecate the use of the boolean options
* Add test for the new require option
* Add documentation on how to use the require option
Co-authored-by: Pau Ruiz i Safont <psafont@ebi.ac.uk>
|
| |
|
| |
Co-authored-by: José Padilla <jpadilla@webapplicate.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add code example for `aud` being an array
The previous code example only showed the `aud` claim as a single
case-sensitive string, despite the documentation mentioning that the
`aud` claim can be an array of case-sensitive strings
Add a code block demonstrating the `aud` claim being an array of
case-sensitive strings to make it more clear to the user that it is a
permitted use of the `aud` claim
* Add example of the `audience` param as an iterable
Demonstrate to users reading the documentation that the `audience`
parameter is not restricted to the `string` type, but can also accept an
iterable, as implemented in PR#306
https://github.com/jpadilla/pyjwt/pull/306
* Fix short title underlines
Short title underlines throw warnings in reStructuredText linters
|
| |
|
|
|
|
|
|
|
|
| |
* Setup pre-commit hooks
* Run initial `tox -e lint`
* Fix package name
* Fix .travis.yml
|
| | |
|
| |
|
| |
Signed-off-by: Debayan De <debayande@users.noreply.github.com>
|
| |
|
| |
Small typo fix
|
| | |
|
| |
|
| |
Related to #181 where users see `ValueError: Algorithm already has a handler.` after trying to register pycrypto algorithms.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
* docs: Add example of encoding and decoding tokens with RSA
Some users have complained that the docs don't make it very clear that
the private key / public key need to be a byte string. This change makes
that clearer by adding an example to usage.rst.
* flake8: Fix a couple of linting errors due to a new version of flake8-import-order
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Added because of this commit: 11f30c4050a11b6398d38f505578c9dabeba6c78
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
RFC 7519 does not specify or even suggest this type of validation on the
'iat' claim and it has caused issues for several consumers of PyJWT.
This change removes the validation on future 'iat' values and leaves
such things up to the application developer to implement.
Fixes #190.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|