| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Default algorithms can now be overridden by passing in the algorithms ↵ | Mark Adams | 2015-03-17 | 1 | -2/+16 | |
| | | | | | parameter to the PyJWT constructor. Also, PyJWT now has a get_supported_algorithms() method that returns back valid values for 'alg' | |||||
| * | Added a better explanation for TestJWT and why it exists. | Mark Adams | 2015-03-17 | 1 | -1/+6 | |
| | | ||||||
| * | Fixed some PEP8 errors from the last commit. | Mark Adams | 2015-03-17 | 1 | -25/+25 | |
| | | ||||||
| * | Refactored tests to make things fit better with the new PyJWT object API | Mark Adams | 2015-03-17 | 2 | -858/+885 | |
| | | | | | | | | | | | - test_jwt.py has been renamed to test_api.py since it focuses entirely on api.py - A new test_jwt.py has been introduced that focuses exclusively on testing the public API. (Specifically, making sure that encode and decode still exist and function). This test can be extremely simple since the jwt.encode and jwt.decode functions are backed by PyJWT() which is tested elsewhere. | |||||
| * | Refactored api.py so that all JWT functions are now part of a PyJWT class. | Mark Adams | 2015-03-17 | 1 | -174/+179 | |
| | | | | | | | | | - Created a singleton instance to preserve jwt.encode, jwt.decode, jwt.register_algorithms existing public APIs - Renamed load and verify_signature to _load and _verify_signature since they are not part of the existing public API - Modified related tests to use PyJWT._load and PyJWT._verify_signature | |||||
| * | Added some more tests to improve coverage for jwt.contrib.algorithms | Mark Adams | 2015-03-15 | 1 | -0/+62 | |
| | | ||||||
| * | Revived PyCrypto and ecdsa-based algorithms as optional jwt.contrib modules. | Mark Adams | 2015-03-15 | 4 | -10/+148 | |
| | | ||||||
| * | Made algorithm class dependence on hash functions more direct. | Mark Adams | 2015-03-15 | 1 | -13/+11 | |
| | | | | | | | | - Algorithms now have SHA256, SHA384, and SHA512 static properties that refer to the callable that instantiates their hash class - All algorithms now expect a class (callable) as their hash_alg now. This behavior was inconsistent before. | |||||
| * | Fixed constant time compare tests so that they always use bytes as input. | Mark Adams | 2015-01-25 | 1 | -3/+10 | |
| | | ||||||
| * | Fixed compat imports so PEP8 passes. | Mark Adams | 2015-01-25 | 1 | -1/+2 | |
| | | ||||||
| * | Added tests for `pyjwt.compat.constant_time_compare` | Mark Adams | 2015-01-25 | 1 | -0/+16 | |
| | | ||||||
| * | Fixed a typo in the class name for TestAlgorithms | Mark Adams | 2015-01-25 | 1 | -1/+1 | |
| | | ||||||
| * | Removed json from compat since this only applies to Python < 2.6 and pyjwt ↵ | Mark Adams | 2015-01-25 | 1 | -0/+7 | |
| | | | | | only builds on >= 2.6. | |||||
| * | Made several changes to testing to increase code coverage | Mark Adams | 2015-01-25 | 10 | -47/+322 | |
| | | | | | | | | | - Added a ton of tests to cover areas that weren't covered before - Added a pep8 tox env to run pep8 tests as part of the build - Moved keys into tests/keys - Added test_algorithms.py for algorithms module tests - Changed setup.py to run all tests in tests/ | |||||
| * | Changed header's alg parameter to be case sensitive per the JWT spec. | Mark Adams | 2015-01-24 | 1 | -0/+24 | |
| | | ||||||
| * | Fix tests that used private APIapi | José Padilla | 2015-01-18 | 1 | -66/+71 | |
| | | ||||||
| * | Fixes #70. Refactored all HMAC, RSA, and EC code into seperate classes in ↵ | Mark Adams | 2015-01-18 | 1 | -54/+18 | |
| | | | | | | | the algorithms module Added register_algorithm to add new algorithms. | |||||
| * | Drop usage of unicode_literals in all modules | Wouter Bolsterlee | 2015-01-12 | 1 | -1/+0 | |
| | | ||||||
| * | Correctly implement audience claim verification | Wouter Bolsterlee | 2015-01-07 | 1 | -44/+9 | |
| | | | | | | | | | | A JWT may contain one or more audience claims. If present, an application must check its own value against the claims in the JWT. In case a token does not contain an audience claim, the application must not specifify one either. See #72 for discussion. | |||||
| * | Rename exceptions that don't have Error in their name | Wouter Bolsterlee | 2015-01-06 | 1 | -14/+14 | |
| | | | | | | ...but keep the old names around as deprecated aliases for backward compatibility. | |||||
| * | Merge pull request #58 from wbolster/issue-57 | José Padilla | 2015-01-05 | 1 | -2/+4 | |
| |\ | | | | | Avoid ResourceWarning in tests | |||||
| | * | Avoid ResourceWarning in tests | Wouter Bolsterlee | 2015-01-05 | 1 | -2/+4 | |
| | | | ||||||
| * | | Add failing test for specifying leeway as a datetime.timedelta | Wouter Bolsterlee | 2015-01-05 | 1 | -12/+15 | |
| |/ | ||||||
| * | Fix test_encode_decode_with_ecdsa_sha384 so that it actually uses the key ↵ | Mark Adams | 2014-12-24 | 1 | -5/+5 | |
| | | | | | its trying to use when using a SSH public key as a string argument to decode() | |||||
| * | Added some missing ensure_bytes in a couple of the tests. | Mark Adams | 2014-12-18 | 1 | -31/+43 | |
| | | | | | | Consolidated testing variables for has_rsa and has_ecdsa into has_crypto. Updated README and dependencies in tox.ini | |||||
| * | Modified ECDSA algorithms to use cryptography library instead of ecdsa. | Mark Adams | 2014-12-18 | 1 | -11/+7 | |
| | | ||||||
| * | Modified RSA algorithms to use cryptography library instead of PyCrypto | Mark Adams | 2014-12-18 | 1 | -38/+38 | |
| | | ||||||
| * | Added reference to unittest2 so that Python 2.6 can use skipIf | Mark Adams | 2014-12-17 | 1 | -1/+5 | |
| | | ||||||
| * | Fixed tests so that they will still run without failure when | Mark Adams | 2014-12-17 | 1 | -144/+132 | |
| | | | | | | dependencies (PyCrypto, ecdsa) are missing. (Tests are skipped if libraries are not present.) | |||||
| * | Added functionality and test. | defyrlt | 2014-12-14 | 1 | -0/+25 | |
| | | ||||||
| * | Implement Audience and Issuer claims | José Padilla | 2014-10-22 | 1 | -0/+120 | |
| | | ||||||
| * | Merge pull request #40 from sullivanmatt/master | José Padilla | 2014-10-21 | 5 | -19/+203 | |
| |\ | | | | | Support for Elliptic Curve signatures (ES256 / ES384 / ES512) | |||||
| | * | Merging in from latest master; resolving merge conflicts | Matthew Sullivan | 2014-10-16 | 1 | -61/+61 | |
| | |\ | ||||||
| | * \ | Merge pull request #1 from progrium/master | Matthew Sullivan | 2014-09-22 | 1 | -0/+15 | |
| | |\ \ | | | | | | | | | Merge in base master at a99f40 | |||||
| | * | | | Adding ecdsa library to test requirements. | Matthew Sullivan | 2014-09-22 | 1 | -0/+1 | |
| | | | | | ||||||
| | * | | | Fixing signature R and S value encoding, add tests for it | Matthew Sullivan | 2014-09-22 | 1 | -1/+41 | |
| | | | | | ||||||
| | * | | | Increasing expiration length to get through all tests. | Matthew Sullivan | 2014-09-20 | 1 | -7/+7 | |
| | | | | | ||||||
| | * | | | First pass at ECDSA tests | Matthew Sullivan | 2014-09-20 | 3 | -5/+139 | |
| | | | | | ||||||
| | * | | | Rename RSA assets in tests | Matthew Sullivan | 2014-09-20 | 5 | -12/+21 | |
| | | | | | ||||||
| * | | | | Fix test for new exception. | Pieter Ennes | 2014-10-21 | 1 | -1/+1 | |
| | | | | | ||||||
| * | | | | Add support for alg="none". | Pieter Ennes | 2014-10-21 | 1 | -0/+9 | |
| | | | | | ||||||
| * | | | | Unit tests for leeway and skip verification. | Pieter Ennes | 2014-10-21 | 1 | -0/+34 | |
| | | | | | ||||||
| * | | | | Add not-before validation. | Pieter Ennes | 2014-10-21 | 1 | -0/+16 | |
| | |_|/ |/| | | ||||||
| * | | | Use single quotes instead of double quotes | José Padilla | 2014-10-15 | 1 | -42/+42 | |
| | |/ |/| | ||||||
| * | | Add test to verify bytes error in python 3 | Chris LaRose | 2014-09-20 | 1 | -0/+15 | |
| |/ | ||||||
| * | Added support for custom headers in encode method | vanzi | 2014-04-24 | 1 | -0/+9 | |
| | | ||||||
| * | Added test cases for the change | Jinyong Lee | 2014-03-14 | 1 | -2/+66 | |
| | | ||||||
| * | Try to fix failing test in 3.2 | José Padilla | 2014-02-08 | 1 | -1/+1 | |
| | | ||||||
| * | Fix tests for 2.6 support | José Padilla | 2014-02-08 | 1 | -58/+122 | |
| | | ||||||
| * | add tests for load() and verify_signature() | wil paredes | 2014-02-07 | 1 | -1/+74 | |
| | | ||||||
