Commit Graph

530 Commits

Author SHA1 Message Date
José Padilla b65e1ac6dc Fix pytest and pinned test dependencies 2018-12-06 07:32:27 -05:00
José Padilla 3f735fdf68 Bump up version to v1.7.0 2018-12-01 22:22:27 -05:00
Tsuyoshi Hombashi 30d4c5a7f9 Import collection ABC's from correct module (#384)
* Move ABCs imports to compat.py to reuse the imports from other modules

* Import collection ABC's from correct module
2018-11-25 10:28:26 -05:00
kreutz-hs 2122f94432 Support Python 3.7 (#375)
* 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.
2018-11-02 07:24:18 -04:00
José Padilla 72fb76e461 Fix broken badge image 2018-11-02 07:05:19 -04:00
José Padilla b616107dab Pin test requirements 2018-11-02 07:02:13 -04:00
José Padilla e7af85b41c Update Travis badge 2018-11-02 07:01:03 -04:00
purificant f1f21a7b9d Run tests for python 3.7 (#379) 2018-11-01 16:25:01 -04:00
Debayan De d3ffeab589 Fixes example invocations in README.rst and docs/index.rst. (#368)
Signed-off-by: Debayan De <debayande@users.noreply.github.com>
2018-08-14 19:04:10 -04:00
Mark Adams c2a8559f61
Merge pull request #357 from purificant/travis_cleanup
travis cleanup
2018-08-01 07:27:53 -05:00
Carl George 6845515ed8 remove CRLF line endings (#353) 2018-07-19 09:52:24 -04:00
PatrikBillgren fa857044e4 Update usage.rst (#360)
Small typo fix
2018-07-19 09:34:01 -04:00
purificant 86be38f4f8 remove workaround for running tests with python 3.5, switch to using travis build matrix for testing different python versions 2018-06-27 15:13:21 +01:00
Mark Adams d25c92ca5e Fix #351 by reverting argument name changes for .decode() (#352)
* Fix #351 by reverting argument name changes for .decode()

* Update CHANGELOG and bump version to 1.6.4
2018-05-23 22:45:54 -04:00
José Padilla dd753dedb0 Update CHANGELOG.md 2018-05-19 13:18:36 -04:00
José Padilla 070015d79e Bump up to v1.6.3 2018-05-19 13:13:14 -04:00
José Padilla 821ab4af30 Update CHANGELOG.md 2018-05-19 12:52:58 -04:00
José Padilla 55dbcb4caa Add issue templates 2018-05-19 09:48:40 -04:00
José Padilla 7ca41e53b3 Add help module 2018-05-19 09:47:33 -04:00
José Padilla 7187336b03 Add .pytest_cache to .gitignore 2018-05-19 09:47:21 -04:00
José Padilla 69870e848a Bump up version 2018-05-19 08:44:25 -04:00
Alejandro J. C De Baca c4a4fb6a99 Added section to usage docs for jwt.get_unverified_header() (#350) 2018-05-19 08:29:18 -04:00
Jacopo Farina aed7305680 RFC: Add type hints (#344)
* 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
2018-04-08 19:31:37 -04:00
dmr ee2ab9fbd7 all exceptions inherit from PyJwtError (#340)
* all exceptions inherit from PyJwtError

* s/Jwt/JWT/

* add to init
2018-03-29 11:27:18 -04:00
Casey 54a39aec6a Update legacy instructions for using pycrypto (#337)
Related to #181 where users see `ValueError: Algorithm already has a handler.` after trying to register pycrypto algorithms.
2018-03-22 22:11:54 -04:00
José Padilla 285afade1d Bump up version to v1.6.1 2018-03-18 09:37:23 -04:00
Derek Weitzel 02374f4203 Fix bug if application does not specify audience (#336)
* Fix bug if application does not specify audience

* Update changelog

* Fixing blank line

* Fixing error message with missing audience
2018-03-15 11:29:53 -04:00
Michael 9d980786c9 Expose InvalidSignatureError on jwt module (#335)
Regards jpadilla/pyjwt#316
2018-03-06 08:05:39 -05:00
Michael 22b94859d7 Add missing links to changelog (#334) 2018-03-06 08:04:35 -05:00
José Padilla 7ae1dee63d Bump up version 2018-03-03 11:51:48 -05:00
José Padilla b949c23d60 Update changelog for v1.6.0 2018-03-03 11:46:25 -05:00
José Padilla 67c035b391
Create CODE_OF_CONDUCT.md (#333) 2018-03-03 11:24:41 -05:00
Stephen Paulger a22ba4bd7a Add missing close quote. (#327) 2018-01-23 10:24:25 -05:00
tornato7 a1205186d7 Fix hyperlink formatting in algorithms.rst (#324) 2018-01-15 23:05:34 -05:00
Markus Holtermann 0c80a7119a Fix #315: Raise InvalidSignatureError over generic DecodeError (#316) 2017-12-01 14:11:09 -05:00
Mark Adams e0aa10ee58 docs: Add example of encoding and decoding tokens with RSA (#313)
* 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
2017-11-28 10:36:37 -05:00
René Springer 7f7d524b78 Allow list of valid audiences to be passed in to PyJWT.decode() (#306)
Resolves #205,
2017-11-26 22:03:06 -06:00
José Padilla c1253ec82f
Fix over-eager fallback to stdin (#304)
* Fix over-eager fallback to stdin

* Ignore .eggs dir

* Add test to cover when terminal is not a TTY
2017-11-05 19:05:14 -05:00
Landon GB e1e4d02c5d Remove code no longer needed with python2.6 dropped 2017-10-19 14:41:22 -04:00
Landon GB dad9a4c6ed Attempt to drop support for python 2.6 and 3.3 (refs #297) 2017-10-19 14:41:22 -04:00
José Padilla f67d112db3
Fix sphinx warning 2017-10-18 11:43:21 -04:00
José Padilla b273633d7c
Fix sponsor banner in docs 2017-10-18 10:44:40 -04:00
José Padilla 45d1b4b196 Add Auth0 sponsor banner 2017-10-18 10:11:48 -04:00
José Padilla 4fdca6e642 Add Auth0 sponsor banner 2017-10-18 10:10:38 -04:00
José Padilla 72bb76cb34
Use twine for publishing to PyPI 2017-09-05 14:20:31 -04:00
José Padilla 2f762817bb
Bump up version to v1.5.3 2017-09-05 14:16:03 -04:00
Przemysław Suliga 608ed4a948 Warn about missing algorithms arg only when verify is True
Since no signature verification will occur, passing in `algorithms` does
not make much sense.
2017-08-31 10:00:29 -05:00
Ran Benita 3def8d80eb Require cryptography >= 1.4, replace deprecated function
The signer/verifier interfaces are deprecated in cryptography==2.0. The
alternative sign/verify interfaces were added in cryptography==1.4.
2017-08-25 17:46:22 -05:00
Landon GB 5fbc48424e Prevent needing to scroll on jwt.decode example 2017-07-28 11:37:53 -04:00
Landon GB ffa8458d70 Add 'algorithms=[]' kwargs to jwt.decode() examples
Added because of this commit: 11f30c4050
2017-07-28 11:37:53 -04:00