summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* added `array` type hinting to `decode` method (#101)Michał2017-06-261-4/+1
|
* Detect invalid Base64 encoding in signature (#162)Brent Shaffer2017-06-211-2/+3
|
* Add the proper Exception message for all JSON error types by PHP (#110)Giorgio Balduzzi2017-06-211-1/+3
|
* Updates JWT::verify to handle openssl errors (#159)Brent Shaffer2017-06-211-5/+9
|
* Merge pull request #129 from stampycode/patch-1Brent Shaffer2017-06-211-0/+3
|\ | | | | bugfix: 'kid' not in given key list
| * cosmetic updatesTim Stamp2017-01-241-2/+2
| |
| * bugfix: 'kid' not in given key listTim Stamp2016-12-121-0/+3
| | | | | | | | if 'kid' value is not found in the given key map, should throw an exception. Instead, it was outputting a php warning for using an undefined index, resulting in a null key.
* | draft-ietf-oauth-json-web-token-06 --> rfc7519 (#107)Arjan Keeman2017-06-191-1/+1
| | | | | | The README says this package is conform rfc7519 (May 2015) rather than just the 6th draft (valid until June 2013). The implementation seems indeed to be compatible with the rfc.
* | Support RS384 and RS512 (#117)Joost Faassen2017-06-191-0/+2
|/
* Add in support for late static binding, so that developers can extend and ↵Tom Chapman2016-06-281-21/+21
| | | | override variables / methods if they so require (#88)
* Fix exceptions classes (#81)Maks3w2016-06-161-6/+8
| | | | | | | | | | | | | | | | | | * Use InvalidArgumentException when $allowed_algs is not array > Exception thrown if an argument is not of the expected type. http://php.net/manual/en/class.invalidargumentexception.php * Use RuntimeExceptions for exceptions related with unencoded data. RuntimeExceptions is the correct exception error source is the decoded data. Note LogicExceptions as defined in PHP documentation implies a modification in the code by the developer. > Exception that represents error in the program logic. This kind of exception should lead directly to a fix in your code. http://php.net/manual/en/class.logicexception.php But the token is a data provided by an external source which is out side of the control of the developer so there is no way of prevent malformed tokens.
* Merge pull request #82 from voku/masterRob DiMarco2016-06-161-0/+1
|\ | | | | ".gitattributes" <- prevent installing special files via composer
| * [+]: ".gitattributes" <- prevent installing special files via composerLars Moelleken2016-02-011-0/+1
| | | | | | | | [*]: add missing phpdoc
* | Merge pull request #93 from josephmcdermott/specify-current-timestampRob DiMarco2016-06-161-3/+13
|\ \ | | | | | | Use static $timestamp instead of time()
| * | Commit with Google email address for CLAJoseph McDermott2016-05-031-0/+1
| | |
| * | Allow timestamp to be specified rather than relying on PHP time() functionJoseph McDermott2016-04-291-3/+12
| |/
* | Remove null as possible key value in docblockArjan Keeman2015-12-301-5/+5
|/ | | The docblock states that null is a possible value for $key, however, it clearly results in an exception.
* add use InvalidArgumentException to account for JWT namespaceSteve Jones2015-07-211-0/+1
|
* Merge remote-tracking branch 'upstream/master' into nullkeySteve Jones2015-07-211-40/+42
|
* Aligned the DocBlocksJohan de Ruijter2015-07-151-22/+33
| | | | Clarified and corrected the documentation where needed.
* fix unexpectedvalueexceptions and add unit testsAaron Hedges2015-07-011-0/+1
|
* Add firespace\jwt namespaceAaron Hedges2015-07-014-0/+363