| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update Auth0 sponsorship link
Hey
We recently launched a new page specifically geared towards developers on auth0.com.
Can we change the link in the sponsorship message?
Thanks again for your continuous open-source work!
Sam
* Update both link and link-text
* Update README.rst
* Update index.rst
Co-authored-by: José Padilla <jpadilla@webapplicate.com>
|
|
|
|
|
|
|
| |
* ECAlgorithm.to_jwk
* Fix failing linting
Co-authored-by: Evert Lammerts <evert@lucipher.net>
|
|
|
|
|
|
|
|
|
|
|
| |
* Drop deprecation warnings
* Add missing keys
* Remove commented exceptions
* Undo lambda change
* Remove unused keys
|
|
|
|
|
| |
* Drop support for legacy contrib algorithms
* Update cryptography dep
|
|
|
|
|
|
|
|
|
|
|
| |
* Introduce better experience for JWKs
* Remove explicit inheritance
* Add tests for PyJWK
* Fix failing test
* Get rid of lambda
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Setup GH Actions
* Remove src path changes
* Add dev extras
* Update USING_COVERAGE
* last update
* Upgrade pytest
* Remove 2.7 things
|
| |
|
|
|
|
|
|
| |
This allows one import that similar to other exceptions:
```
from jwt import InvalidKeyError
```
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Use a declarative syntax to avoid mixing code and configuration.
Simplifies handling of long description and version by reducing some
boilerplate.
For details on this setuptools feature, see:
https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
|
|
|
|
| |
This assumes all direct calls to private methods (leading underscore in name)
are from pyjwt code, hence stacklevel=3 nor 2.
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
Documents the project as Python 3 only to potential and current library
users.
As the project no longer supports Python 2, the wheel is not
"universal". From
https://wheel.readthedocs.io/en/stable/user_guide.html?highlight=universal#building-wheels:
> If your project … is expected to work on both Python 2 and 3, you will
> want to tell wheel to produce universal wheels …
|
|
|
|
| |
The command `setup.py test` has been unused since
3a20892442b34c754b26550e05f7f856fb008c94.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|