Commit Graph

438 Commits

Author SHA1 Message Date
Dave Grijalva d9df83c827 use cleaner version of prefix checking (thanks shurcooL) 2015-11-13 15:03:12 -08:00
Dave Grijalva dd0ede9741 fix array OOB panic (#100) 2015-11-13 12:50:04 -08:00
Dave Grijalva f2dd936aa8 added test for valid signing method 2015-11-02 15:24:32 -08:00
Dave Grijalva 774f319043 added tests for parser. fixed parser when using restricted method list 2015-11-02 15:22:08 -08:00
Dave Grijalva 7ac27fb6ac renamed files to match their purpose 2015-11-02 11:26:07 -08:00
Dave Grijalva 52c68d1293 Merge pull request #93 from EnerfisTeam/master
Added parsing of ECDSA keys in the example app
2015-11-02 11:20:56 -08:00
Dave Grijalva bdfe8ca0b6 created a Parser type to allow for non-global parser configuration 2015-10-29 11:45:16 -07:00
Dave Grijalva 9a00cd52d4 Merge branch 'master' of github.com:dgrijalva/jwt-go 2015-10-29 11:26:19 -07:00
Dave Grijalva acc5a5f31e fixes #95 - incorrect documentation 2015-10-20 13:53:03 -07:00
Štěpán Pilař 80be4727a3 Added parsing of ECDSA keys in the example app 2015-10-15 08:38:32 +02:00
Dave Grijalva fba4b18cce Merge pull request #88 from ivoviz/patch-1
Update README.md
2015-10-02 15:25:28 -07:00
wizzie eeccfeb20d Update README.md 2015-10-01 20:16:16 +02:00
Dave Grijalva f62f64ea22 Merge pull request #87 from vektra/master
Fix ES signature serialization
2015-09-23 13:28:32 -07:00
Evan Phoenix 5bc4686aab Fix ES signature serialization 2015-09-16 19:53:08 -07:00
Dave Grijalva 581ca99478 minor refactor of HMAC verify for legibility. no functional changes 2015-09-14 12:07:47 -07:00
Dave Grijalva 127f538a32 updated documenation of SigningMethod interface 2015-09-14 12:07:08 -07:00
Dave Grijalva c1da563496 Added comment about adding custom signing methods to README 2015-09-04 14:24:56 -07:00
Dave Grijalva 3b55c4adf0 Merge pull request #83 from lBilali/master
test with go 1.5
2015-08-31 17:36:14 -07:00
lBilali abf9b1b822 Update .travis.yml 2015-08-20 10:53:58 +02:00
Dave Grijalva 9c00ec7ce7 more/simpler examples 2015-08-18 13:28:52 -07:00
Dave Grijalva 69c78c3652 missed one in the rename 2015-08-18 13:03:45 -07:00
Dave Grijalva e4a56deada don't need that 2015-08-18 10:58:37 -07:00
Dave Grijalva e0b58f1724 MapClaim -> MapClaims 2015-08-18 10:18:57 -07:00
Dave Grijalva dcda21cf2c documentation update 2015-08-18 09:52:44 -07:00
Dave Grijalva a1fc9b87e6 fixed ordering of map output in example test 2015-08-18 09:45:50 -07:00
Dave Grijalva 17be525a73 Merge branch 'custom-parsing' of https://github.com/itsjamie/jwt-go into release_3_0_0 2015-08-18 09:30:39 -07:00
Dave Grijalva 2b0327edf6 added support for none, hopefully in a way you can't use accidentally 2015-07-22 13:49:41 -07:00
Jamie Stackhouse ddfa84b397 Changed test to explicitly show that you can change the map without type
asserting every call.
2015-07-22 13:53:37 -03:00
Jamie Stackhouse 6f536a0d2d Changed example to use Output test. 2015-07-22 13:48:42 -03:00
Jamie Stackhouse aa6ac13a18 Changed default "New" to use NewWithClaims internally. 2015-07-20 14:47:34 -03:00
Jamie Stackhouse 22cba44699 Moving claim information into claims.go 2015-07-20 14:38:26 -03:00
Dave Grijalva bcde77e55b added rsa change to version history 2015-07-20 10:25:27 -07:00
Dave Grijalva 011d5bb935 drop support for []byte keys in RSA signing methods 2015-07-20 10:23:11 -07:00
Jamie Stackhouse 15b4825280 Add example to migration showing new usage of Parse(WithClaims) 2015-07-20 13:25:55 -03:00
Jamie Stackhouse b00e282378 Update README with some migration information. 2015-07-20 13:20:18 -03:00
Jamie Stackhouse ec042acef7 Recommended changes from PR. Plus some documentation. 2015-07-20 09:50:05 -03:00
Jamie Stackhouse 3eddded2f3 Adding additional bits to mask for various validation errors. 2015-07-17 16:40:52 -03:00
Jamie Stackhouse a6f24f4cf0 Update Claimer -> Claims, update Claims struct -> StandardClaims. 2015-07-17 15:59:18 -03:00
Jamie Stackhouse dfdafab9a7 Update, use MapClaim by default. 2015-07-17 15:55:06 -03:00
Jamie Stackhouse a33fdf927a Going through and updating tests to pass.
Still need to add a test that utilizes the defaults of the structured
object.

Update Cmdline app

Update package reference for PR.

Update examples
2015-07-17 15:14:04 -03:00
Jamie Stackhouse 44718f8a89 Structured Claims object!
Only verify claim if it isn't a default value.

The alternative here would be to use pointers in the Claims structure then we
would know which were nil, or if they were explicitly set to zero in the
claim section

Updated MapClaim implementation to check for existance of keys before
using them.

If they don't exists, validation functions simply return true.
2015-07-17 15:13:59 -03:00
Dave Grijalva 9fe8afe96d version notes for 1.3.0 2015-07-16 14:10:27 -07:00
Dave Grijalva e5cb38552f Merge pull request #74 from patbaker82/ecdsa
Add ECDSA signatures
2015-07-16 14:04:19 -07:00
Dave Grijalva 0efa026231 Merge pull request #72 from patbaker82/rsapss
Add RSASSA-PSS signatures
2015-07-16 14:02:47 -07:00
Patrick Baker c6092083d4 Add RSASSA-PSS signatures 2015-07-16 16:57:46 -04:00
Patrick Baker bf3befad72 Add ECDSA signatures 2015-07-16 15:41:02 -04:00
Jamie Stackhouse febded4195 Added a few new methods to use custom Claims structs.
Must implement interface Claims, which means there is a Valid method.
2015-07-14 14:34:09 -03:00
Jamie Stackhouse fa9a0b8c45 Add validation error bit for generic validation error. 2015-07-14 14:31:32 -03:00
Jamie Stackhouse 94cd619027 Switch to Claims interface, tests pass. 2015-07-13 16:14:12 -03:00
Dave Grijalva 2e53eb673c dropped go v1.2.2 from travis ci config. it's missing some of the things required 2015-06-02 15:39:46 -07:00