| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Added header option for encode
* added tests and None check
* updated quotes for consistency
* format fixes after tox
|
| |
|
|
|
|
|
|
| |
* Remove py27 support
* [py27] Remove useless compatibility files
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Setup pre-commit hooks
* Run initial `tox -e lint`
* Fix package name
* Fix .travis.yml
|
| |
|
|
|
|
|
|
| |
The new ecdsa no longer uses AssertionError when the signature is too long.
This happens in the test suite, where "123" is appended to the signature.
Fixes #447
|
| |
|
|
|
|
|
|
|
|
|
| |
Using pytest and tox directly is simpler and more conventional then
going through setup.py. Using setup.py installs packages as eggs where
as tox uses the more typical pip.
Overall simplifies setup.py.
Fixes #415
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes warning when running the `python3 setup.py bdist_wheel` command:
The [wheel] section is deprecated. Use [bdist_wheel] instead.
For additional details, see:
https://github.com/pypa/wheel/blob/d2f5b43c866295de7b3963da9fd049f1ca4b1194/wheel/bdist_wheel.py#L124-L131
https://pythonwheels.com/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Helps pip decide what version of the library to install. This is
especially useful when removing support for EOL Python versions.
https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
> If your project only runs on certain Python versions, setting the
> python_requires argument to the appropriate PEP 440 version specifier
> string will prevent pip from installing the project on other Python
> versions.
https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords
> python_requires
>
> A string corresponding to a version specifier (as defined in PEP 440)
> for the Python version, used to specify the Requires-Python defined in
> PEP 345.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Per recent upstream fix to typeshed, json.dumps() cls argument should be
optional type JSONEncoder.
https://github.com/python/typeshed/commit/8e0d288ea49a34f9bd21b1598ec487414a339a1f
Fixes mypy error:
jwt/api_jws.py:102: error: Argument "cls" to "dumps" has incompatible type "Optional[Callable[..., Any]]"; expected "Optional[Type[JSONEncoder]]"
jwt/api_jwt.py:61: error: Argument "cls" to "dumps" has incompatible type "Optional[Callable[..., Any]]"; expected "Optional[Type[JSONEncoder]]"
|
| |
|
| |
|
|
|
|
| |
flake8 and tests. Fixes #416. (#417)
|
| |
|
|
|
|
|
|
| |
* Use Dict instead of Mapping for return type of decode
* Use str as a dictionary key
|
| |
|
| |
|
|
|
|
|
|
| |
* Move ABCs imports to compat.py to reuse the imports from other modules
* Import collection ABC's from correct module
|
|
|
|
|
| |
* Import collection ABC's from correct module
They were moved into collections.abc in 3.3 and will be deprecated
from collections in 3.8.
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Signed-off-by: Debayan De <debayande@users.noreply.github.com>
|
|\
| |
| | |
travis cleanup
|
| |
| |
| |
| | |
build matrix for testing different python versions
|
| | |
|
|/
|
| |
Small typo fix
|
|
|
|
|
|
| |
* Fix #351 by reverting argument name changes for .decode()
* Update CHANGELOG and bump version to 1.6.4
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Add mypy to Travis and a simple type hint to _get_default_options
* Make flake8 accept unused import required by mypy
* Add typing to encode and decode, create encode_bytes in JWS to differentiate from encode in JWT
* Use Union type to describe both types of payload
|
|
|
|
|
|
|
|
| |
* all exceptions inherit from PyJwtError
* s/Jwt/JWT/
* add to init
|