3c185f3a74
Gotta Change The Module Name To Use My Local Fork
2024-02-09 16:34:43 -05:00
7e7e71ba74
Can this use a keyset?
2024-02-09 16:25:21 -05:00
Peter Kieltyka
a77c65043f
rs256 test case to verify only
2023-12-13 20:43:16 -05:00
Peter Kieltyka
4e5a7fd5c2
README
2023-12-05 13:36:22 -05:00
Peter Kieltyka
ecb7305746
add JWTAuth#ValidateOptions method
2023-12-05 13:31:10 -05:00
Peter Kieltyka
fc3832839d
jwtauth.New to accept jwt.ValidateOptions
2023-11-21 15:57:10 -05:00
Peter Kieltyka
19f55ff778
upgrade deps
2023-06-29 09:35:42 -04:00
Peter Kieltyka
36417065f8
update docs
2023-01-03 12:16:33 -05:00
Peter Kieltyka
c5c2c95d0a
ci update: jwx/v2 is using go 1.18+ type, set jwtauth pkg min to go 1.18 ( #74 )
2022-11-13 11:33:12 -05:00
Nicola Murino
84b5aa8ecb
use jwx v2 ( #73 )
2022-11-13 11:18:43 -05:00
kvii
137d669fb7
remove unnecessary code. ( #69 )
2022-02-09 06:21:49 -05:00
Lukas Malkmus
6047f9231e
Update github.com/lestrrat-go/jwx to v1.2.6 ( #65 )
2021-09-20 08:25:42 -04:00
Peter Kieltyka
255b7cda08
min go 1.15 as required by jwx
2021-03-30 14:19:29 -04:00
Peter Kieltyka
25eecdfa2c
upgrade jwx dep
2021-03-30 14:17:23 -04:00
Peter Kieltyka
9448513887
v5.0.0
2021-02-27 19:23:25 -05:00
Nicola Murino
52c0aa2d7c
fix compatibility with jwx 1.1.0 ( #55 )
2021-01-31 16:35:32 -05:00
Peter Kieltyka
38df5c8c2e
Update Verifier for locating jwt token; removing TokenFromQuery from defaults
2020-12-12 14:55:17 -05:00
Peter Kieltyka
b8af768272
Switch to github.com/lestrrat-go/jwx underlying jwt library ( #52 )
2020-12-12 09:40:27 -05:00
Peter Kieltyka
02fa0c511c
Update to use chi v1.5.1 go mod
2020-12-06 22:28:54 -05:00
hmkwizu
b14bfcd999
fix incorrect error checking for NBF ( #47 )
2020-02-03 17:30:09 -05:00
Peter Kieltyka
38b5b1fc41
remove go.mod file, for now
2019-09-22 16:49:56 -04:00
Peter Kieltyka
aa727a6feb
goimports
2019-01-09 10:43:31 -05:00
Peter Kieltyka
47840abb19
update travis config for recent versions of Go
2019-01-09 10:36:19 -05:00
Peter Kieltyka
6b6475598c
revert use of go mod in chi v4
2019-01-09 10:18:50 -05:00
Vojtech Vitek
7ae401cf04
Update to github.com/go-chi/chi/v4
2019-01-08 18:40:54 -05:00
Peter Kieltyka
fcf2c975be
add MapClaims helper methods
2018-09-26 13:55:45 -04:00
Jonathan ES Lin
ea7d7e213f
Remove unnecessary code and clean up errors ( #30 )
...
* Initial refactor
* Fix some of the tests
* Handle more specific errors from jwt library
* Fix comments
* Rename package
* Verify signing algo after nil check
2018-09-26 10:43:54 -07:00
Vojtech Vitek
53a0a4877a
Merge pull request #26 from slax0rr/master
...
Truly support jwtauth.Claims when parsing from context
2018-02-28 11:37:34 -05:00
Tomaz Lovrec
508040879e
Truly support jwtauth.Claims when parsing from context
...
Previous change "fixed" the panic, but would silently remove all Claims,
because the tokenClaims are not copied over to the claims variable.
2018-02-28 17:17:42 +01:00
Vojtech Vitek
fdeab96f74
Support jwtauth.Claims in FromContext(), fixes panic ( #25 )
2018-01-17 22:14:14 -05:00
Vojtech Vitek
5d94d7c263
Merge pull request #24 from go-chi/err_notoken
...
Add ErrNoTokenFound verify error
2018-01-17 19:29:29 -05:00
Vojtech Vitek
ca8a698a9c
Add ErrNoTokenFound verify error
2018-01-17 19:24:00 -05:00
Peter Kieltyka
47cdb657f2
Verifier functions should not be vars
2017-11-26 12:32:19 -05:00
Peter Kieltyka
ace6ea2799
Lint fix, rename JwtAuth to JWTAuth
2017-11-26 10:34:54 -05:00
Vojtech Vitek
34cf10b6ac
Fix #1 : Update to github.com/dgrijalva/jwt-go v3.1.0
...
https://github.com/dgrijalva/jwt-go/issues/221
2017-10-20 11:20:21 -04:00
Peter Kieltyka
9f0ed7472c
Update README
2017-10-10 06:38:31 -04:00
Lukas Malkmus
e6503c425b
Implement custom search functions ( #20 )
...
* Implement custom search functions
* Improve function and parameter names
* Preserve original search order
2017-10-10 06:29:25 -04:00
Emil Nikolov
050a030f1c
Changed the expected key type from []byte to interface{} to match the method signatures of jwt-go and added a test ( #22 )
2017-10-10 06:26:11 -04:00
Vojtech Vitek
8ac0540e67
Merge pull request #23 from jonhester/add-godoc-badge
...
Add godoc badge to readme
2017-10-06 02:10:12 -04:00
Jon Hester
e96cc161e9
Add godoc badge to readme
2017-10-05 20:24:21 -04:00
Peter Kieltyka
89031fb71d
Remove old comments
2017-08-08 12:49:28 -04:00
Peter Kieltyka
e701090bf8
Merge branch 'master' of github.com:goware/jwtauth
2017-07-12 21:25:40 -04:00
Peter Kieltyka
1281aa5c53
Add VerifyRequest func to verify requests directly
2017-07-12 21:25:34 -04:00
Vojtech Vitek
6075ccf867
Disable Gopkg.toml until github.com/dgrijalva/jwt-go releases v3.0.1+
...
See https://github.com/dgrijalva/jwt-go/issues/221
2017-07-11 19:41:45 -04:00
Peter Kieltyka
287076f82d
Keep jwt.Token.Claims as a jwt.MapClaims type
2017-07-10 21:30:13 -04:00
Peter Kieltyka
6444fb9aef
Move Verifier method to pkg-level func to accept *jwtauth.JwtAuth
2017-07-06 18:09:09 -04:00
Vojtech Vitek
a5d0d75313
Add golang/dep Gopkg.toml with dependency constraints
2017-07-06 17:13:04 -04:00
Peter Kieltyka
92a7a642f5
Make IsExpired a func instead of method, and rename SetContext method to NewContext func
2017-07-06 16:49:11 -04:00
Peter Kieltyka
e2d303f666
Add dependency note in README
2017-07-06 16:39:18 -04:00
Peter Kieltyka
1e267ab0c7
Rename TokenContext method to FromContext
2017-07-06 15:23:11 -04:00