| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Change TypeError on bad `kid` to InvalidTokenError | Gabriel Gironda | 2015-07-23 | 1 | -4/+4 |
| | | |||||
| * | Fail on encode and decode of bad JWS header values | Gabriel Gironda | 2015-07-21 | 1 | -2/+25 |
| | | | | | | | | | | | | | | | | The JWS spec: https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-41#section-4.1.4 States that if `kid` is present then it **MUST** be a string. Currently, the library allows silent creation of invalid JWS (and thus, JWT), as it allows any type for `kid`. This commit adds checks to help ensure output meets the spec. * Add jwt.api_jws.PyJWS._validate_headers for validating JWS headers on encode and decode * Add tests | ||||
| * | Changed test function name | Alexandru Mihai | 2015-06-23 | 1 | -1/+1 |
| | | |||||
| * | Remove unused variable | Alexandru Mihai | 2015-06-23 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'master' of https://github.com/jpadilla/pyjwt | Alexandru Mihai | 2015-06-22 | 2 | -12/+60 |
| |\ | |||||
| | * | Added new options for requiring exp, iat, and nbf claims. | Mark Adams | 2015-06-02 | 2 | -12/+60 |
| | | | | | | | | | Thanks to David Black <dblack@atlassian.com> for the suggestion. | ||||
| * | | Added test for verify signature with empty algo | Alexandru Mihai | 2015-06-22 | 1 | -0/+10 |
| |/ | |||||
| * | Removed tests that are no longer necessary now that we have test vectors ↵ | Mark Adams | 2015-05-19 | 1 | -66/+33 |
| | | | | | from RFC 7520 | ||||
| * | Removed the @skipif from the RSA-PSS test vector test. | Mark Adams | 2015-05-19 | 1 | -1/+0 |
| | | |||||
| * | Merged master branch in to remove Python 3.2 support and add the new | Mark Adams | 2015-05-18 | 9 | -1/+248 |
| |\ | | | | | | | test vectors from #160 | ||||
| | * | Added test vectors from the IETF JOSE Cookbook for HMAC, RSA, and EC. | Mark Adams | 2015-05-18 | 8 | -1/+239 |
| | | | |||||
| | * | Added get_unverified_header method so that unverified headers can be ↵ | Mark Adams | 2015-05-08 | 1 | -0/+9 |
| | | | | | | | | | retrieved by the application. Closes #155 | ||||
| * | | Test signatures with wrong length | esneider | 2015-05-15 | 1 | -0/+14 |
| | | | |||||
| * | | Fix the ECDSA signature serialization format when using cryptography | esneider | 2015-05-13 | 3 | -18/+14 |
| | | | |||||
| * | | Fix the ECDSA signature serialization format | esneider | 2015-05-10 | 1 | -12/+9 |
| |/ | |||||
| * | `verify_expiration` was removed too soonbring-verify_expiration-back | José Padilla | 2015-04-26 | 1 | -0/+20 |
| | | | | | - Merge with `verify_exp` option - Add deprecation warning | ||||
| * | Split tests between PyJWS and PyJWT object responsiblities | Mark Adams | 2015-04-19 | 2 | -502/+612 |
| | | |||||
| * | Refactored JWS-specific logic out of PyJWT and into PyJWS superclass | Mark Adams | 2015-04-19 | 1 | -7/+7 |
| | | |||||
| * | Fixed some PEP8 issues | Mark Adams | 2015-04-14 | 1 | -3/+1 |
| | | |||||
| * | Fixed some squirly looking tests. | Mark Adams | 2015-04-14 | 1 | -12/+8 |
| | | |||||
| * | Removed all references to unittest | Mark Adams | 2015-04-14 | 6 | -299/+270 |
| | | |||||
| * | Minor refactorings to move some utils code around and remove unneeded code. | Mark Adams | 2015-04-14 | 3 | -8/+8 |
| | | |||||
| * | Converted all unittest constructs to pytest | Mark Adams | 2015-04-14 | 5 | -189/+199 |
| | | |||||
| * | Merge pull request #135 from mark-adams/minor-updates | José Padilla | 2015-04-14 | 2 | -16/+32 |
| |\ | | | | | Minor refactorings to make things a little cleaner | ||||
| | * | Added a test to improve coverage and cleaned up some existing tests. | Mark Adams | 2015-04-12 | 2 | -10/+29 |
| | | | |||||
| | * | Changed PyJWT.default_options to options | Mark Adams | 2015-04-12 | 1 | -6/+3 |
| | | | | | | | | | and updated the CHANGELOG | ||||
| * | | Added a deprecation warning for using verify= instead of options= on decode() | Mark Adams | 2015-04-12 | 1 | -0/+21 |
| |/ | |||||
| * | Added support for RSASSA-PSS algorithms (PS256, PS384, PS512) | Mark Adams | 2015-04-08 | 2 | -7/+72 |
| | | |||||
| * | refactor option merging, add myself to AUTHORS, s/dict()/{} | Michael Davis | 2015-04-08 | 1 | -2/+2 |
| | | |||||
| * | Remove dict comprehension for py26 compatibility | Michael Davis | 2015-04-06 | 1 | -0/+2 |
| | | |||||
| * | Add flexible and complete verification options | Michael Davis | 2015-04-06 | 1 | -2/+67 |
| | | | | | Attempts to fix #127 | ||||
| * | Made some PEP8 fixes that came from the last commit. | Mark Adams | 2015-03-29 | 1 | -3/+3 |
| | | |||||
| * | Added checks on iat to make sure that a token can't be issued for the | Mark Adams | 2015-03-29 | 1 | -5/+13 |
| | | | | | | future Changed nbf exception to ImmatureSignatureError | ||||
| * | Moved claims validation into a seperate private method to make it simpler to ↵ | Mark Adams | 2015-03-29 | 1 | -3/+0 |
| | | | | | understand the code. | ||||
| * | Fixed some PEP8 errors from the last commit. | Mark Adams | 2015-03-29 | 1 | -2/+0 |
| | | |||||
| * | Removed private APIs from tests and refactored tests to focus on public APIs | Mark Adams | 2015-03-29 | 1 | -216/+62 |
| | | |||||
| * | Added validation for 'nbf' claim to ensure it is an int value. #121 | Mark Adams | 2015-03-29 | 1 | -0/+9 |
| | | |||||
| * | Added validation for 'iat' claim to ensure it is an int value. #121 | Mark Adams | 2015-03-29 | 1 | -2/+10 |
| | | |||||
| * | Added validation for 'exp' claim to ensure it is an int value. #121 | Mark Adams | 2015-03-29 | 1 | -0/+10 |
| | | |||||
| * | Fixed a flaky test by making sure we actually make the signature invalid ↵ | Mark Adams | 2015-03-18 | 1 | -3/+2 |
| | | | | | from within the base64 instead of afterwards. | ||||
| * | Added the ability to specify both a global alg whitelist for a PyJWT object ↵ | Mark Adams | 2015-03-17 | 1 | -18/+37 |
| | | | | | and a whitelist for calls to decode. (Fixes #107) | ||||
| * | Added tests to cover invalid string validations on HMAC | Mark Adams | 2015-03-17 | 2 | -1/+61 |
| | | |||||
| * | 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. | ||||
