jwt 2.2.1 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHORS +79 -44
  3. data/CHANGELOG.md +305 -20
  4. data/CODE_OF_CONDUCT.md +84 -0
  5. data/CONTRIBUTING.md +99 -0
  6. data/README.md +268 -40
  7. data/lib/jwt/base64.rb +16 -2
  8. data/lib/jwt/claims_validator.rb +13 -9
  9. data/lib/jwt/configuration/container.rb +32 -0
  10. data/lib/jwt/configuration/decode_configuration.rb +46 -0
  11. data/lib/jwt/configuration/jwk_configuration.rb +27 -0
  12. data/lib/jwt/configuration.rb +15 -0
  13. data/lib/jwt/decode.rb +80 -18
  14. data/lib/jwt/deprecations.rb +29 -0
  15. data/lib/jwt/encode.rb +24 -19
  16. data/lib/jwt/error.rb +17 -14
  17. data/lib/jwt/jwa/ecdsa.rb +76 -0
  18. data/lib/jwt/jwa/eddsa.rb +42 -0
  19. data/lib/jwt/jwa/hmac.rb +75 -0
  20. data/lib/jwt/jwa/hmac_rbnacl.rb +50 -0
  21. data/lib/jwt/jwa/hmac_rbnacl_fixed.rb +46 -0
  22. data/lib/jwt/jwa/none.rb +19 -0
  23. data/lib/jwt/jwa/ps.rb +30 -0
  24. data/lib/jwt/jwa/rsa.rb +25 -0
  25. data/lib/jwt/{algos → jwa}/unsupported.rb +8 -5
  26. data/lib/jwt/jwa/wrapper.rb +26 -0
  27. data/lib/jwt/jwa.rb +62 -0
  28. data/lib/jwt/jwk/ec.rb +251 -0
  29. data/lib/jwt/jwk/hmac.rb +103 -0
  30. data/lib/jwt/jwk/key_base.rb +57 -0
  31. data/lib/jwt/jwk/key_finder.rb +19 -30
  32. data/lib/jwt/jwk/kid_as_key_digest.rb +15 -0
  33. data/lib/jwt/jwk/okp_rbnacl.rb +110 -0
  34. data/lib/jwt/jwk/rsa.rb +181 -25
  35. data/lib/jwt/jwk/set.rb +80 -0
  36. data/lib/jwt/jwk/thumbprint.rb +26 -0
  37. data/lib/jwt/jwk.rb +39 -15
  38. data/lib/jwt/verify.rb +25 -6
  39. data/lib/jwt/version.rb +24 -3
  40. data/lib/jwt/x5c_key_finder.rb +52 -0
  41. data/lib/jwt.rb +6 -4
  42. data/ruby-jwt.gemspec +18 -10
  43. metadata +45 -76
  44. data/.codeclimate.yml +0 -20
  45. data/.ebert.yml +0 -18
  46. data/.gitignore +0 -11
  47. data/.rspec +0 -1
  48. data/.rubocop.yml +0 -98
  49. data/.travis.yml +0 -20
  50. data/Appraisals +0 -14
  51. data/Gemfile +0 -3
  52. data/Rakefile +0 -11
  53. data/lib/jwt/algos/ecdsa.rb +0 -35
  54. data/lib/jwt/algos/eddsa.rb +0 -23
  55. data/lib/jwt/algos/hmac.rb +0 -33
  56. data/lib/jwt/algos/ps.rb +0 -43
  57. data/lib/jwt/algos/rsa.rb +0 -19
  58. data/lib/jwt/default_options.rb +0 -15
  59. data/lib/jwt/security_utils.rb +0 -57
  60. data/lib/jwt/signature.rb +0 -52
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d2008539983aac7d87a7854da7f9540a517bf343c240982c0780c2fe7f7876d
4
- data.tar.gz: 72d347d14c972bbe3f272d67cfe09ce71da36ca8d424d510d4bcd4f902752ac8
3
+ metadata.gz: af3792b982f014801d3ff7ae3410be6bd1e0b27f199c500942eb86267bb2b764
4
+ data.tar.gz: c37fc4b72cf3819210b15164548eff44579de1e8f8c48d9ce35864a84f007d9a
5
5
  SHA512:
6
- metadata.gz: 6817c7e474c45b3649d4dd5391f2c22524aa8eab07bb43a1aec5d22cf0801d9fb88ff0b9bd7ab4f2b46f24aa86e2cceb56fc8ef4552da3515d43ef3f72e4d9bc
7
- data.tar.gz: 5aece771f4d9a1e72042d30580a89af74f1997401478bd2057830c9a90a67fd2abb8170eaade3fa0922ea847e600ebb6dc440df3fede751d8ce848e426e8e9fa
6
+ metadata.gz: 3f61fd13a1d56c657691abb4bfde3671a7d93b5c853785b804c0d119d27f4641685828eb9c65a8e4856487782530e791ecbce5f1a5f1cb61c883daff97a44367
7
+ data.tar.gz: ef36aa81991e28cb9d3df65f1ebbeb6599eb99dee8e1953aff1a6231e91c6a3f9633e3afd22fbbc6c09f6318c4e516ee7a908428eee303f3952fed890395b267
data/AUTHORS CHANGED
@@ -1,84 +1,119 @@
1
1
  Tim Rudat
2
+ Joakim Antman
2
3
  Jeff Lindsay
3
4
  A.B
4
- Emilio Cristalli
5
+ shields
5
6
  Bob Aman
7
+ Emilio Cristalli
8
+ Egon Zemmer
6
9
  Zane Shannon
7
- Oliver
8
- Paul Battley
9
10
  Nikita Shatov
11
+ Paul Battley
12
+ Oliver
10
13
  blackanger
14
+ Ville Lautanala
11
15
  Tyler Pickett
12
16
  James Stonehill
13
17
  Adam Michael
14
- Ville Lautanala
18
+ Martin Emde
19
+ Saverio Trioni
15
20
  Peter M. Goldstein
16
- Joakim Antman
17
21
  Korstiaan de Ridder
22
+ Richard Larocque
23
+ Andrew Davis
24
+ Yason Khaburzaniya
18
25
  Klaas Jan Wierenga
26
+ Nick Hammond
27
+ Bart de Water
19
28
  Steve Sloan
29
+ Antonis Berkakis
20
30
  Bill Mill
21
- Erik Michaels-Ober
22
- Brian Flethcer
23
- Jurriaan Pruis
24
31
  Kevin Olbrich
25
- Larry Lv
26
- Rodrigo López Dato
27
- Steven Davidovitz
28
- Tom Wey
32
+ Simon Fish
33
+ jb08
29
34
  lukas
35
+ Rodrigo López Dato
30
36
  ojab
37
+ Ritikesh
31
38
  sawyerzhang
39
+ Larry Lv
40
+ smudge
32
41
  wohlgejm
42
+ Tom Wey
33
43
  yann ARMAND
34
- Jordan Brough
35
- Juanito Fatas
36
- Julio Lopez
37
- Zuzanna Stolińska
38
- Katelyn Kasperowicz
39
- aarongray
40
- B
41
- Adam Greene
42
- Lowell Kirsh
43
- Lucas Mazza
44
- Makoto Chiba
45
- Manuel Bustillo
46
- Marco Adkins
47
- Micah Gates
48
- Mike Eirih
49
- Mike Pastore
50
- Mingan
51
- Mitch Birti
44
+ Brian Flethcer
45
+ Jurriaan Pruis
46
+ Erik Michaels-Ober
47
+ Matthew Simpson
48
+ Steven Davidovitz
52
49
  Nicolas Leger
53
- Austin Kabiru
54
- Artsiom Kuts
55
- Arnaud Mesureur
56
- Ariel Salomon
50
+ Pierre Michard
51
+ RahulBajaj
57
52
  Rob Wygand
58
- danielgrippi
59
53
  Ryan Brushett
60
54
  Ryan McIlmoyl
61
- Aman Gupta
55
+ Ryan Metzler
56
+ Severin Schoepke
57
+ Shaun Guth
62
58
  Steve Teti
63
- revodoge
59
+ T.J. Schuck
64
60
  Taiki Sugawara
65
- nycvotes-dev
66
- Alexandr Kostrikov
61
+ Takehiro Adachi
67
62
  Tobias Haar
68
63
  Toby Pinder
69
- rono23
70
64
  Tomé Duarte
71
65
  Travis Hunter
72
- Alexander Boyd
73
66
  Yuji Yaginuma
67
+ Zuzanna Stolińska
68
+ aarongray
69
+ danielgrippi
70
+ fusagiko/takayamaki
71
+ mai fujii
72
+ nycvotes-dev
73
+ revodoge
74
+ rono23
75
+ antonmorant
76
+ Adam Greene
77
+ Alexander Boyd
78
+ Alexandr Kostrikov
79
+ Aman Gupta
80
+ Ariel Salomon
81
+ Arnaud Mesureur
82
+ Artsiom Kuts
83
+ Austin Kabiru
84
+ B
85
+ Bouke van der Bijl
86
+ Brandon Keepers
87
+ Dan Leyden
88
+ Dave Grijalva
89
+ Dmitry Pashkevich
90
+ Dorian Marié
74
91
  Ernie Miller
75
92
  Evgeni Golov
76
93
  Ewoud Kohl van Wijngaarden
94
+ HoneyryderChuck
95
+ Igor Victor
77
96
  Ilyaaaaaaaaaaaaa Zhitomirskiy
78
- Dorian Marié
79
- Dave Grijalva
80
97
  Jens Hausherr
81
98
  Jeremiah Wuenschel
82
- Brandon Keepers
83
99
  John Downey
100
+ Jordan Brough
84
101
  Josh Bodah
102
+ JotaSe
103
+ Juanito Fatas
104
+ Julio Lopez
105
+ Katelyn Kasperowicz
106
+ Leonardo Saraiva
107
+ Lowell Kirsh
108
+ Loïc Lengrand
109
+ Lucas Mazza
110
+ Makoto Chiba
111
+ Manuel Bustillo
112
+ Marco Adkins
113
+ Meredith Leu
114
+ Micah Gates
115
+ Michał Begejowicz
116
+ Mike Eirih
117
+ Mike Pastore
118
+ Mingan
119
+ Mitch Birti