Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reflect that --no-verify also ignores claims | Gunnlaugur Thor Briem | 2015-11-30 | 1 | -1/+1 |
| | | | The --no-verify option disables both signature verification and claims verification (e.g. expiry); reflect that in the command-line help. | ||||
* | binary_type verification added to make the code more future-proof | Mauricio Aizaga | 2015-10-23 | 2 | -4/+7 |
| | |||||
* | Fixed syntax for python 2.6 | Mauricio Aizaga | 2015-10-22 | 1 | -1/+1 |
| | |||||
* | Fixed #183 AttributeError: 'NoneType' object has no attribute 'rsplit' | Mauricio Aizaga | 2015-10-22 | 1 | -0/+3 |
| | | | | | | The issue also occurs when payload is int raising: AttributeError: 'int' object has no attribute 'rsplit' Test for None and int payload added | ||||
* | Change TypeError on bad `kid` to InvalidTokenError | Gabriel Gironda | 2015-07-23 | 1 | -2/+2 |
| | |||||
* | Fail on encode and decode of bad JWS header values | Gabriel Gironda | 2015-07-21 | 1 | -2/+13 |
| | | | | | | | | | | | | | | | 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 | ||||
* | Bump up version to v1.4.01.4.0 | José Padilla | 2015-07-16 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of https://github.com/jpadilla/pyjwt | Alexandru Mihai | 2015-06-22 | 3 | -5/+29 |
|\ | |||||
| * | Added new options for requiring exp, iat, and nbf claims. | Mark Adams | 2015-06-02 | 3 | -5/+29 |
| | | | | | | | | Thanks to David Black <dblack@atlassian.com> for the suggestion. | ||||
* | | Fixed #167 throw InvalidAlgorithmError if alg not in header | Alexandru Mihai | 2015-06-22 | 1 | -1/+1 |
|/ | |||||
* | Preparing for 1.3 release | Mark Adams | 2015-05-22 | 1 | -1/+1 |
| | |||||
* | Changed RSA-PSS algorithm to use the digest size of the hash function for ↵ | Mark Adams | 2015-05-19 | 1 | -2/+2 |
| | | | | the salt length instead of the maximum salt length per the JWA spec. Fixes #162. | ||||
* | Merged master branch in to remove Python 3.2 support and add the new | Mark Adams | 2015-05-18 | 5 | -9/+150 |
|\ | | | | | | | test vectors from #160 | ||||
| * | refactor scripts, testing, travis and tox | Gabi Davar | 2015-05-17 | 1 | -0/+135 |
| | | |||||
| * | Removed constant_time_compare branch that was only needed for Python 3.2 | Mark Adams | 2015-05-16 | 1 | -8/+3 |
| | | |||||
| * | Added get_unverified_header to public API | Mark Adams | 2015-05-09 | 3 | -1/+4 |
| | | |||||
| * | Added get_unverified_header method so that unverified headers can be ↵ | Mark Adams | 2015-05-08 | 1 | -0/+8 |
| | | | | | | | | retrieved by the application. Closes #155 | ||||
* | | Fix python3 and pep8 issues | esneider | 2015-05-13 | 2 | -3/+3 |
| | | |||||
* | | Fix the ECDSA signature serialization format when using cryptography | esneider | 2015-05-13 | 2 | -2/+50 |
| | | |||||
* | | Fix the ECDSA signature serialization format | esneider | 2015-05-10 | 1 | -3/+3 |
|/ | |||||
* | Made options a mandatory argument to PyJWT._validate_claims and reordered ↵ | Mark Adams | 2015-05-04 | 1 | -3/+3 |
| | | | | the arguments to reflect the change. Resolves #148. | ||||
* | Bump up version1.2.0 | José Padilla | 2015-04-28 | 1 | -1/+1 |
| | |||||
* | `verify_expiration` was removed too soonbring-verify_expiration-back | José Padilla | 2015-04-26 | 1 | -0/+7 |
| | | | | - Merge with `verify_exp` option - Add deprecation warning | ||||
* | Removed an extra attempt to encode the payload that I missed when I was ↵ | Mark Adams | 2015-04-19 | 2 | -4/+2 |
| | | | | refactoring | ||||
* | Refactored PyJWT._validate_claims into multiple PyJWT._validate_* | Mark Adams | 2015-04-19 | 1 | -41/+69 |
| | | | | submethods to eliminate a lot of complexity. | ||||
* | Refactored JWS-specific logic out of PyJWT and into PyJWS superclass | Mark Adams | 2015-04-19 | 4 | -261/+320 |
| | |||||
* | Bump up version | José Padilla | 2015-04-15 | 1 | -1/+1 |
| | |||||
* | Merge pull request #135 from mark-adams/minor-updates | José Padilla | 2015-04-14 | 2 | -19/+18 |
|\ | | | | | 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 | 1 | -1/+1 |
| | | |||||
| * | Created merge_dict utility function | Mark Adams | 2015-04-12 | 2 | -18/+17 |
| | | |||||
| * | Optimized _merge_options and changed some variable names | Mark Adams | 2015-04-12 | 1 | -8/+8 |
| | | |||||
| * | Changed PyJWT.default_options to options | Mark Adams | 2015-04-12 | 1 | -4/+4 |
| | | | | | | | | and updated the CHANGELOG | ||||
* | | Added a deprecation warning for using verify= instead of options= on decode() | Mark Adams | 2015-04-12 | 1 | -0/+3 |
|/ | |||||
* | Added support for RSASSA-PSS algorithms (PS256, PS384, PS512) | Mark Adams | 2015-04-08 | 1 | -7/+45 |
| | |||||
* | refactor option merging, add myself to AUTHORS, s/dict()/{} | Michael Davis | 2015-04-08 | 1 | -12/+8 |
| | |||||
* | Remove dict comprehension for py26 compatibility | Michael Davis | 2015-04-06 | 1 | -5/+12 |
| | |||||
* | Add flexible and complete verification options | Michael Davis | 2015-04-06 | 1 | -11/+38 |
| | | | | Attempts to fix #127 | ||||
* | Made some PEP8 fixes that came from the last commit. | Mark Adams | 2015-03-29 | 2 | -4/+4 |
| | |||||
* | Added checks on iat to make sure that a token can't be issued for the | Mark Adams | 2015-03-29 | 3 | -13/+23 |
| | | | | | 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 | -9/+13 |
| | | | | understand the code. | ||||
* | Changed _verify_signature to use int() casted values for comparisons. | Mark Adams | 2015-03-29 | 1 | -2/+2 |
| | |||||
* | Added validation for 'nbf' claim to ensure it is an int value. #121 | Mark Adams | 2015-03-29 | 1 | -0/+5 |
| | |||||
* | Added validation for 'iat' claim to ensure it is an int value. #121 | Mark Adams | 2015-03-29 | 1 | -1/+7 |
| | |||||
* | Added validation for 'exp' claim to ensure it is an int value. #121 | Mark Adams | 2015-03-29 | 1 | -0/+5 |
| | |||||
* | Bump up versionv1.0.11.0.1 | José Padilla | 2015-03-26 | 1 | -1/+1 |
| | |||||
* | Fixed some warnings in algorithms.py related to the relocation of some ↵ | Mark Adams | 2015-03-18 | 1 | -5/+11 |
| | | | | cryptography primitives | ||||
* | Bump up version | José Padilla | 2015-03-18 | 1 | -1/+1 |
| | |||||
* | Added unregister_algorithm to the public API | Mark Adams | 2015-03-17 | 2 | -1/+4 |
| | |||||
* | Added the ability to specify both a global alg whitelist for a PyJWT object ↵ | Mark Adams | 2015-03-17 | 3 | -28/+57 |
| | | | | and a whitelist for calls to decode. (Fixes #107) | ||||
* | Fix typo | José Padilla | 2015-03-17 | 1 | -1/+1 |
| |