Commit Graph

230 Commits

Author SHA1 Message Date
Dave Grijalva 996dd550fd Merge branch 'master' into release_3_0_0 2016-04-12 16:19:20 -07:00
Dave Grijalva c8d4fff6cc verify that an error is always returned if token.Valid is false (and the reverse) 2016-04-12 14:52:39 -07:00
Dave Grijalva 1b765952cc Merge branch 'dg/example_code' into release_3_0_0 2016-04-12 14:44:51 -07:00
Dave Grijalva 2b161b0e1a Merge pull request #126 from dgrijalva/dg/request
Move request processing stuff to sub-package
2016-04-12 14:39:55 -07:00
Dave Grijalva 561ef5eec0 Merge pull request #128 from dgrijalva/dg/example_code
Move examples into testable files instead of README
2016-04-12 14:36:32 -07:00
Dave Grijalva 4400800062 Merge branch 'release_3_0_0' into dg/request 2016-04-12 14:34:54 -07:00
Dave Grijalva fb4ca74c9f added special case behavior for MapClaims so they aren't all weird 2016-04-12 14:32:24 -07:00
Dave Grijalva 9d0dcba491 fix for weird map pointer crap 2016-04-12 14:31:41 -07:00
Dave Grijalva 0145da90d4 added link to jwt.io 2016-04-12 13:39:14 -07:00
Dave Grijalva 6f2e6588a2 replace inline examples with links to examples in the test suite. these examples are evaluated as part of the test pass, so they should remain correct 2016-04-12 13:34:11 -07:00
Dave Grijalva 0c245a4f7e added example of parsing using custom type 2016-04-12 13:33:20 -07:00
Dave Grijalva c466333a1b expanded usefulness and correctness of examples 2016-04-12 13:18:31 -07:00
Dave Grijalva 070a4bdd00 moved request related error int request subpackage 2016-04-08 13:58:29 -07:00
Dave Grijalva 288cee4336 added a couple tests for request parsing that don't rely on giant parser test dataset 2016-04-08 13:02:18 -07:00
Dave Grijalva e3cd52238a moved some of the test helpers into a shared location so they can be reused 2016-04-08 13:01:55 -07:00
Dave Grijalva bc13ee82c3 Merge branch 'release_3_0_0' into dg/request 2016-04-08 11:57:11 -07:00
Dave Grijalva 572c9130e8 cleaned up style and added tests 2016-04-04 14:42:10 -07:00
Dave Grijalva d8496232e5 Merge branch 'master' of https://github.com/dakom/jwt-go into dg/pr_121 2016-04-04 13:59:36 -07:00
Dave Grijalva 4ec621a2d1 Merge branch 'master' into release_3_0_0 2016-03-31 11:19:33 -07:00
Dave Grijalva b446e078d6 version history update 2016-03-31 11:13:52 -07:00
Dave Grijalva b6cc8838b1 Merge pull request #79 from dgrijalva/dg/none
Add support for alg='none'
2016-03-31 10:58:59 -07:00
Dave Grijalva 668b54691a Merge pull request #122 from appleboy/patch-1
Test latest 1.4.x and 1.3.x version.
2016-03-22 15:14:19 -07:00
Bo-Yi Wu b7d25eabfb Test latest 1.4.x and 1.3.x version. 2016-03-22 09:07:45 +08:00
David Komer 0ebbeab74c conversion error fixed 2016-03-17 15:12:22 +02:00
David Komer 52e4189627 use json.Number for claims check
if parser.UseJSONNumber is true then the Claims[“exp”] and
Claims[“nbf”] can be full int64 range, not limited to float64

vnbf and vexp are just flags for whether or not the values were
obtained through either method and should be checked
2016-03-17 15:00:13 +02:00
Dave Grijalva 9a4b9f2ac1 add 1.6 to travis.yml 2016-03-07 15:28:38 -08:00
Dave Grijalva f2193411bd Merge pull request #107 from Snorlock/bearer-verification
token.go: did some changes to the checks
2016-02-09 11:43:28 -08:00
Dave Grijalva e0e3b433f5 WIP on migrating request parsing stuff 2016-01-14 14:09:27 -08:00
Dave Grijalva afef698c32 Merge pull request #111 from matm/master
README: fix return arguments
2015-12-30 10:00:00 -08:00
matm 574cd7c245 README: fix return arguments 2015-12-30 18:50:00 +01:00
Snorre lothar von Gohren Edwin fea509ebfe pushed a test change 2015-12-23 09:45:17 +01:00
Snorre lothar von Gohren Edwin ca46641b15 PR updated, faster string method and more reasonable message feedback 2015-12-23 09:43:00 +01:00
Dave Grijalva 2240de772c added supported signing methods 2015-12-22 13:53:19 -08:00
Dave Grijalva b47bdbc660 Added some clarification and (hopefully) helpful documentation 2015-12-22 13:27:59 -08:00
Snorre lothar von Gohren Edwin 57b1269c41 modifications on PR. Added a space in the bearer string check so that we unexpectly dont experience an base64url encoding because bearer is technically part of a valid endcoding, we think. Also moved it into a failed decoding to get a better feedback for the developer, but not do unessecary amount of string checks 2015-12-22 15:30:57 +01:00
Snorre lothar von Gohren Edwin 1f970af1f8 added right amount of return 2015-12-20 09:25:50 +01:00
Snorre lothar von Gohren Edwin 5d11392aac no breakpoints 2015-12-19 23:58:27 +01:00
Snorre lothar von Gohren Edwin b863883b96 token.go: did some changes to the checks so that it will give better error feedback for noobs who write the authorization bearer value wrong 2015-12-19 23:49:37 +01:00
Dave Grijalva f164e17f59 version history 2015-11-16 13:12:11 -08:00
Dave Grijalva b728399c73 signature should be populated after parsing a valid token 2015-11-16 12:42:37 -08:00
Dave Grijalva 56c7810ac4 Merge branch 'master' into release_3_0_0 2015-11-16 11:59:51 -08:00
Dave Grijalva 2bd555e247 Merge pull request #98 from dgrijalva/dg/parser
Created a Parser type to allow for non-global parser configuration
2015-11-16 11:47:09 -08:00
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