sorcery-jwt 0.1.13 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +43 -0
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile.lock +189 -43
- data/LICENSE.txt +1 -1
- data/lib/sorcery/controller/submodules/jwt.rb +4 -3
- data/lib/sorcery/jwt/version.rb +1 -1
- data/lib/sorcery/model/submodules/jwt.rb +4 -3
- data/mise.toml +2 -0
- data/sorcery-jwt.gemspec +9 -15
- metadata +18 -44
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bda8036589ded6b4a9870c7b0bcae86e6e7a4a2c7a33e4541aba3ed0e6b13c5
|
|
4
|
+
data.tar.gz: cd0e7e47c7bd2b4a3a74e035c0e78a478beaf28d9b40d2d6dba353ae68fc0e9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ae9d70d53abf1cc192b2c1d37d91e62c70b0c0f7c83ce1618ab794d85978295e1a48be02ecff17a49653649c1c3b98ec6ecec375d29c2fc639d5dd0eef5f7fd
|
|
7
|
+
data.tar.gz: d4ef75f3664bcf002ebf684e0ea5d78637de18856fad4996275592a23d19d189dc2bde5c82498ebc9082c8733b819ec13de530eba927d0d6ad5e841a6581f24d
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
ruby: ["3.2", "3.3", "3.4"]
|
|
14
|
+
sorcery: ["0.16.5", "0.17.0", "0.18.0"]
|
|
15
|
+
env:
|
|
16
|
+
BUNDLE_GEMFILE: gemfiles/sorcery_${{ matrix.sorcery }}.gemfile
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
|
22
|
+
bundler-cache: true
|
|
23
|
+
- run: bundle exec rspec
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.4
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.1 (2026-09-03)
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Supported sorcery range widened to `>= 0.16.5, < 0.19` (0.17 and 0.18
|
|
8
|
+
verified). Previously pinned `< 0.17`, which blocked installs alongside
|
|
9
|
+
current sorcery.
|
|
10
|
+
- CI now runs a matrix: Ruby 3.2–3.4 × sorcery 0.16.5 / 0.17 / 0.18.
|
|
11
|
+
|
|
12
|
+
## 0.2.0 (2026-09-03)
|
|
13
|
+
|
|
14
|
+
### Security
|
|
15
|
+
|
|
16
|
+
- **Fix auth bypass**: a validly-signed token without `id`/`email` claims hit
|
|
17
|
+
`find_by({})`, which returns the first user in the table. `login_from_jwt`
|
|
18
|
+
now rejects such tokens outright.
|
|
19
|
+
- `login_from_jwt` now requires the token's `email` claim to match the
|
|
20
|
+
looked-up user's email.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- The model submodule now registers correctly on modern Rubies. The included
|
|
25
|
+
hook called `sorcery_config.class_eval` on a Config *instance*, which was
|
|
26
|
+
never a valid Ruby call; in applications, sorcery's `rescue NameError`
|
|
27
|
+
silently skipped the submodule, leaving `issue_token`/`decode_token`
|
|
28
|
+
undefined at runtime. The hook now uses `singleton_class.class_eval`.
|
|
29
|
+
- Removed an `include InstanceMethods` reference to a module that never
|
|
30
|
+
existed (it resolved to sorcery's core `InstanceMethods` by accident).
|
|
31
|
+
- `token_valid?` no longer depends on ActiveSupport (`.present?`).
|
|
32
|
+
- Failed JWT authentication sets `@current_user` to `nil` (sorcery
|
|
33
|
+
convention) instead of `false`.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- Spec suite covering issuance, decoding, expiry, tamper rejection (wrong
|
|
38
|
+
secret/algorithm), the claim contract, and controller login paths.
|
|
39
|
+
- CI via GitHub Actions.
|
|
40
|
+
|
|
41
|
+
## 0.1.13 (2022-02-02)
|
|
42
|
+
|
|
43
|
+
- Last release of the original series.
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
|
55
55
|
## Enforcement
|
|
56
56
|
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at
|
|
58
|
+
reported by contacting the project team at . All
|
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/Gemfile.lock
CHANGED
|
@@ -1,64 +1,210 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sorcery-jwt (0.1
|
|
4
|
+
sorcery-jwt (0.2.1)
|
|
5
5
|
jwt (>= 1.0, < 3.0)
|
|
6
|
-
sorcery (>= 0.
|
|
6
|
+
sorcery (>= 0.16.5, < 0.19)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
actionpack (8.1.3.1)
|
|
12
|
+
actionview (= 8.1.3.1)
|
|
13
|
+
activesupport (= 8.1.3.1)
|
|
14
|
+
nokogiri (>= 1.8.5)
|
|
15
|
+
rack (>= 2.2.4)
|
|
16
|
+
rack-session (>= 1.0.1)
|
|
17
|
+
rack-test (>= 0.6.3)
|
|
18
|
+
rails-dom-testing (~> 2.2)
|
|
19
|
+
rails-html-sanitizer (~> 1.6)
|
|
20
|
+
useragent (~> 0.16)
|
|
21
|
+
actionview (8.1.3.1)
|
|
22
|
+
activesupport (= 8.1.3.1)
|
|
23
|
+
builder (~> 3.1)
|
|
24
|
+
erubi (~> 1.11)
|
|
25
|
+
rails-dom-testing (~> 2.2)
|
|
26
|
+
rails-html-sanitizer (~> 1.6)
|
|
27
|
+
activesupport (8.1.3.1)
|
|
28
|
+
base64
|
|
29
|
+
bigdecimal
|
|
30
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
31
|
+
connection_pool (>= 2.2.5)
|
|
32
|
+
drb
|
|
33
|
+
i18n (>= 1.6, < 2)
|
|
34
|
+
json
|
|
35
|
+
logger (>= 1.4.2)
|
|
36
|
+
minitest (>= 5.1)
|
|
37
|
+
securerandom (>= 0.3)
|
|
38
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
39
|
+
uri (>= 0.13.1)
|
|
40
|
+
anonymous_loader (0.1.3)
|
|
41
|
+
version_gem (~> 1.1, >= 1.1.14)
|
|
42
|
+
auth-sanitizer (0.2.3)
|
|
43
|
+
version_gem (~> 1.1, >= 1.1.14)
|
|
44
|
+
base64 (0.3.0)
|
|
45
|
+
bcrypt (3.1.22)
|
|
46
|
+
bigdecimal (4.1.2)
|
|
47
|
+
builder (3.3.0)
|
|
48
|
+
concurrent-ruby (1.3.8)
|
|
49
|
+
connection_pool (3.0.2)
|
|
50
|
+
crass (1.0.7)
|
|
51
|
+
diff-lcs (1.6.2)
|
|
52
|
+
drb (2.2.3)
|
|
53
|
+
erb (6.0.7)
|
|
54
|
+
erubi (1.13.1)
|
|
55
|
+
faraday (2.14.3)
|
|
56
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
57
|
+
json
|
|
58
|
+
logger
|
|
59
|
+
faraday-net_http (3.4.4)
|
|
60
|
+
net-http (~> 0.5)
|
|
61
|
+
hashie (5.1.0)
|
|
62
|
+
logger
|
|
63
|
+
i18n (1.15.2)
|
|
64
|
+
concurrent-ruby (~> 1.0)
|
|
65
|
+
io-console (0.9.2)
|
|
66
|
+
irb (1.18.0)
|
|
67
|
+
pp (>= 0.6.0)
|
|
68
|
+
prism (>= 1.3.0)
|
|
69
|
+
rdoc (>= 4.0.0)
|
|
70
|
+
reline (>= 0.4.2)
|
|
71
|
+
json (2.21.2)
|
|
72
|
+
jwt (2.10.3)
|
|
73
|
+
base64
|
|
74
|
+
logger (1.7.0)
|
|
75
|
+
loofah (2.25.2)
|
|
76
|
+
crass (~> 1.0.2)
|
|
77
|
+
nokogiri (>= 1.12.0)
|
|
78
|
+
minitest (6.0.6)
|
|
79
|
+
drb (~> 2.0)
|
|
80
|
+
prism (~> 1.5)
|
|
81
|
+
multi_xml (0.9.1)
|
|
82
|
+
bigdecimal (>= 3.1, < 5)
|
|
83
|
+
net-http (0.9.1)
|
|
84
|
+
uri (>= 0.11.1)
|
|
85
|
+
nokogiri (1.19.4-aarch64-linux-gnu)
|
|
86
|
+
racc (~> 1.4)
|
|
87
|
+
nokogiri (1.19.4-aarch64-linux-musl)
|
|
88
|
+
racc (~> 1.4)
|
|
89
|
+
nokogiri (1.19.4-arm-linux-gnu)
|
|
90
|
+
racc (~> 1.4)
|
|
91
|
+
nokogiri (1.19.4-arm-linux-musl)
|
|
92
|
+
racc (~> 1.4)
|
|
93
|
+
nokogiri (1.19.4-arm64-darwin)
|
|
94
|
+
racc (~> 1.4)
|
|
95
|
+
nokogiri (1.19.4-x86_64-darwin)
|
|
96
|
+
racc (~> 1.4)
|
|
97
|
+
nokogiri (1.19.4-x86_64-linux-gnu)
|
|
98
|
+
racc (~> 1.4)
|
|
99
|
+
nokogiri (1.19.4-x86_64-linux-musl)
|
|
100
|
+
racc (~> 1.4)
|
|
101
|
+
oauth (1.1.8)
|
|
102
|
+
anonymous_loader (~> 0.1, >= 0.1.3)
|
|
103
|
+
auth-sanitizer (~> 0.2, >= 0.2.3)
|
|
104
|
+
base64 (~> 0.1)
|
|
105
|
+
oauth-tty (~> 1.0, >= 1.0.13)
|
|
106
|
+
snaky_hash (~> 2.0, >= 2.0.7)
|
|
107
|
+
version_gem (~> 1.1, >= 1.1.14)
|
|
108
|
+
oauth-tty (1.0.13)
|
|
109
|
+
anonymous_loader (~> 0.1, >= 0.1.3)
|
|
110
|
+
auth-sanitizer (~> 0.2, >= 0.2.3)
|
|
111
|
+
version_gem (~> 1.1, >= 1.1.14)
|
|
112
|
+
oauth2 (2.0.25)
|
|
113
|
+
anonymous_loader (~> 0.1, >= 0.1.3)
|
|
114
|
+
auth-sanitizer (~> 0.2, >= 0.2.3)
|
|
115
|
+
faraday (>= 0.17.3, < 4.0)
|
|
116
|
+
jwt (>= 1.0, < 4.0)
|
|
117
|
+
logger (~> 1.2)
|
|
26
118
|
multi_xml (~> 0.5)
|
|
27
|
-
rack (>= 1.2, <
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
119
|
+
rack (>= 1.2, < 4)
|
|
120
|
+
snaky_hash (~> 2.0, >= 2.0.7)
|
|
121
|
+
version_gem (~> 1.1, >= 1.1.14)
|
|
122
|
+
pp (0.6.4)
|
|
123
|
+
prettyprint
|
|
124
|
+
prettyprint (0.2.0)
|
|
125
|
+
prism (1.9.0)
|
|
126
|
+
racc (1.8.1)
|
|
127
|
+
rack (3.2.7)
|
|
128
|
+
rack-session (2.1.2)
|
|
129
|
+
base64 (>= 0.1.0)
|
|
130
|
+
rack (>= 3.0.0)
|
|
131
|
+
rack-test (2.2.0)
|
|
132
|
+
rack (>= 1.3)
|
|
133
|
+
rackup (2.3.1)
|
|
134
|
+
rack (>= 3)
|
|
135
|
+
rails-dom-testing (2.3.0)
|
|
136
|
+
activesupport (>= 5.0.0)
|
|
137
|
+
minitest
|
|
138
|
+
nokogiri (>= 1.6)
|
|
139
|
+
rails-html-sanitizer (1.7.1)
|
|
140
|
+
loofah (~> 2.25, >= 2.25.2)
|
|
141
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
142
|
+
railties (8.1.3.1)
|
|
143
|
+
actionpack (= 8.1.3.1)
|
|
144
|
+
activesupport (= 8.1.3.1)
|
|
145
|
+
irb (~> 1.13)
|
|
146
|
+
rackup (>= 1.0.0)
|
|
147
|
+
rake (>= 12.2)
|
|
148
|
+
thor (~> 1.0, >= 1.2.2)
|
|
149
|
+
tsort (>= 0.2)
|
|
150
|
+
zeitwerk (~> 2.6)
|
|
151
|
+
rake (13.4.2)
|
|
152
|
+
rbs (4.2.0)
|
|
153
|
+
logger
|
|
154
|
+
prism (>= 1.6.0)
|
|
155
|
+
tsort
|
|
156
|
+
rdoc (8.0.0)
|
|
157
|
+
erb
|
|
158
|
+
prism (>= 1.6.0)
|
|
159
|
+
rbs (>= 4.0.0)
|
|
160
|
+
tsort
|
|
161
|
+
reline (0.7.0)
|
|
162
|
+
io-console (~> 0.5)
|
|
163
|
+
rspec (3.13.2)
|
|
164
|
+
rspec-core (~> 3.13.0)
|
|
165
|
+
rspec-expectations (~> 3.13.0)
|
|
166
|
+
rspec-mocks (~> 3.13.0)
|
|
167
|
+
rspec-core (3.13.6)
|
|
168
|
+
rspec-support (~> 3.13.0)
|
|
169
|
+
rspec-expectations (3.13.5)
|
|
41
170
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
42
|
-
rspec-support (~> 3.
|
|
43
|
-
rspec-mocks (3.8
|
|
171
|
+
rspec-support (~> 3.13.0)
|
|
172
|
+
rspec-mocks (3.13.8)
|
|
44
173
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
45
|
-
rspec-support (~> 3.
|
|
46
|
-
rspec-support (3.
|
|
47
|
-
|
|
48
|
-
|
|
174
|
+
rspec-support (~> 3.13.0)
|
|
175
|
+
rspec-support (3.13.7)
|
|
176
|
+
securerandom (0.4.1)
|
|
177
|
+
snaky_hash (2.0.7)
|
|
178
|
+
hashie (>= 0.1.0, < 6)
|
|
179
|
+
version_gem (~> 1.1, >= 1.1.14)
|
|
180
|
+
sorcery (0.18.0)
|
|
49
181
|
bcrypt (~> 3.1)
|
|
50
|
-
oauth (
|
|
51
|
-
oauth2 (~>
|
|
182
|
+
oauth (>= 0.6)
|
|
183
|
+
oauth2 (~> 2.0)
|
|
184
|
+
railties (>= 7.1)
|
|
185
|
+
thor (1.5.0)
|
|
186
|
+
tsort (0.2.0)
|
|
187
|
+
tzinfo (2.0.6)
|
|
188
|
+
concurrent-ruby (~> 1.0)
|
|
189
|
+
uri (1.1.1)
|
|
190
|
+
useragent (0.16.11)
|
|
191
|
+
version_gem (1.1.15)
|
|
192
|
+
zeitwerk (2.8.3)
|
|
52
193
|
|
|
53
194
|
PLATFORMS
|
|
54
|
-
|
|
195
|
+
aarch64-linux-gnu
|
|
196
|
+
aarch64-linux-musl
|
|
197
|
+
arm-linux-gnu
|
|
198
|
+
arm-linux-musl
|
|
199
|
+
arm64-darwin
|
|
200
|
+
x86_64-darwin
|
|
201
|
+
x86_64-linux-gnu
|
|
202
|
+
x86_64-linux-musl
|
|
55
203
|
|
|
56
204
|
DEPENDENCIES
|
|
57
|
-
bundler (~> 1.16)
|
|
58
|
-
pry (~> 0.10.0)
|
|
59
205
|
rake (~> 13.0)
|
|
60
206
|
rspec (~> 3.0)
|
|
61
207
|
sorcery-jwt!
|
|
62
208
|
|
|
63
209
|
BUNDLED WITH
|
|
64
|
-
|
|
210
|
+
2.6.9
|
data/LICENSE.txt
CHANGED
|
@@ -11,13 +11,14 @@ module Sorcery
|
|
|
11
11
|
protected
|
|
12
12
|
|
|
13
13
|
def login_from_jwt
|
|
14
|
-
|
|
14
|
+
claims = decoded_token.first.slice("id", "email")
|
|
15
|
+
return @current_user = nil if claims.empty?
|
|
15
16
|
|
|
16
|
-
@current_user = user_class.find_by(
|
|
17
|
+
@current_user = user_class.find_by(claims)
|
|
17
18
|
auto_login(@current_user) if @current_user
|
|
18
19
|
@current_user
|
|
19
20
|
rescue JWT::DecodeError, JWT::ExpiredSignature
|
|
20
|
-
@current_user =
|
|
21
|
+
@current_user = nil
|
|
21
22
|
end
|
|
22
23
|
|
|
23
24
|
def login_and_issue_token(*credentials)
|
data/lib/sorcery/jwt/version.rb
CHANGED
|
@@ -6,7 +6,9 @@ module Sorcery
|
|
|
6
6
|
module Submodules
|
|
7
7
|
module Jwt
|
|
8
8
|
def self.included(base)
|
|
9
|
-
|
|
9
|
+
# Define the jwt accessors on the config instance's singleton class;
|
|
10
|
+
# Config#class_eval is not a valid Ruby call.
|
|
11
|
+
base.sorcery_config.singleton_class.class_eval do
|
|
10
12
|
# Secret used to encode JWTs. Should correspond to the type needed by the algorithm used.
|
|
11
13
|
attr_accessor :jwt_secret
|
|
12
14
|
# Type of the algorithm used to encode JWTs. Corresponds to the options available in jwt/ruby-jwt.
|
|
@@ -25,7 +27,6 @@ module Sorcery
|
|
|
25
27
|
base.sorcery_config.after_config << :validate_secret_defined
|
|
26
28
|
|
|
27
29
|
base.extend(ClassMethods)
|
|
28
|
-
base.send(:include, InstanceMethods)
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
module ClassMethods
|
|
@@ -39,7 +40,7 @@ module Sorcery
|
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
def token_valid?(token)
|
|
42
|
-
decode_token(token)
|
|
43
|
+
!!decode_token(token)
|
|
43
44
|
rescue JWT::DecodeError, JWT::ExpiredSignature
|
|
44
45
|
false
|
|
45
46
|
end
|
data/mise.toml
ADDED
data/sorcery-jwt.gemspec
CHANGED
|
@@ -6,22 +6,18 @@ Gem::Specification.new do |spec|
|
|
|
6
6
|
spec.name = "sorcery-jwt"
|
|
7
7
|
spec.version = Sorcery::Jwt::VERSION
|
|
8
8
|
spec.authors = ["Hayden Luckenbach"]
|
|
9
|
-
spec.email = ["hluckenb@gmail.com"]
|
|
10
9
|
|
|
11
10
|
spec.summary = "Jwt extension for the Sorcery authentication library"
|
|
12
|
-
spec.description = ""
|
|
11
|
+
spec.description = "Adds JWT issuance and authentication to the Sorcery " \
|
|
12
|
+
"authentication library, for API-only Rails apps."
|
|
13
13
|
spec.homepage = "https://github.com/hayfever/sorcery-jwt"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# else
|
|
22
|
-
# raise "RubyGems 2.0 or newer is required to protect against " \
|
|
23
|
-
# "public gem pushes."
|
|
24
|
-
# end
|
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/CHANGELOG.md"
|
|
19
|
+
|
|
20
|
+
spec.required_ruby_version = ">= 3.0"
|
|
25
21
|
|
|
26
22
|
# Specify which files should be added to the gem when it is released.
|
|
27
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been
|
|
@@ -36,11 +32,9 @@ Gem::Specification.new do |spec|
|
|
|
36
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
37
33
|
spec.require_paths = ["lib"]
|
|
38
34
|
|
|
39
|
-
spec.add_development_dependency "bundler", ">= 2.1.0"
|
|
40
|
-
spec.add_development_dependency "pry", "~> 0.10.0"
|
|
41
35
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
42
36
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
43
37
|
|
|
44
38
|
spec.add_runtime_dependency "jwt", ">= 1.0", "< 3.0"
|
|
45
|
-
spec.add_runtime_dependency "sorcery", ">= 0.
|
|
46
|
-
end
|
|
39
|
+
spec.add_runtime_dependency "sorcery", ">= 0.16.5", "< 0.19"
|
|
40
|
+
end
|
metadata
CHANGED
|
@@ -1,43 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sorcery-jwt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hayden Luckenbach
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 2.1.0
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: 2.1.0
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: pry
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.10.0
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.10.0
|
|
41
12
|
- !ruby/object:Gem::Dependency
|
|
42
13
|
name: rake
|
|
43
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -92,30 +63,31 @@ dependencies:
|
|
|
92
63
|
requirements:
|
|
93
64
|
- - ">="
|
|
94
65
|
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
66
|
+
version: 0.16.5
|
|
96
67
|
- - "<"
|
|
97
68
|
- !ruby/object:Gem::Version
|
|
98
|
-
version: '0.
|
|
69
|
+
version: '0.19'
|
|
99
70
|
type: :runtime
|
|
100
71
|
prerelease: false
|
|
101
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
102
73
|
requirements:
|
|
103
74
|
- - ">="
|
|
104
75
|
- !ruby/object:Gem::Version
|
|
105
|
-
version:
|
|
76
|
+
version: 0.16.5
|
|
106
77
|
- - "<"
|
|
107
78
|
- !ruby/object:Gem::Version
|
|
108
|
-
version: '0.
|
|
109
|
-
description:
|
|
110
|
-
|
|
111
|
-
- hluckenb@gmail.com
|
|
79
|
+
version: '0.19'
|
|
80
|
+
description: Adds JWT issuance and authentication to the Sorcery authentication library,
|
|
81
|
+
for API-only Rails apps.
|
|
112
82
|
executables: []
|
|
113
83
|
extensions: []
|
|
114
84
|
extra_rdoc_files: []
|
|
115
85
|
files:
|
|
86
|
+
- ".github/workflows/ci.yml"
|
|
116
87
|
- ".gitignore"
|
|
117
88
|
- ".rspec"
|
|
118
|
-
- ".
|
|
89
|
+
- ".ruby-version"
|
|
90
|
+
- CHANGELOG.md
|
|
119
91
|
- CODE_OF_CONDUCT.md
|
|
120
92
|
- Gemfile
|
|
121
93
|
- Gemfile.lock
|
|
@@ -128,12 +100,15 @@ files:
|
|
|
128
100
|
- lib/sorcery/jwt.rb
|
|
129
101
|
- lib/sorcery/jwt/version.rb
|
|
130
102
|
- lib/sorcery/model/submodules/jwt.rb
|
|
103
|
+
- mise.toml
|
|
131
104
|
- sorcery-jwt.gemspec
|
|
132
105
|
homepage: https://github.com/hayfever/sorcery-jwt
|
|
133
106
|
licenses:
|
|
134
107
|
- MIT
|
|
135
|
-
metadata:
|
|
136
|
-
|
|
108
|
+
metadata:
|
|
109
|
+
homepage_uri: https://github.com/hayfever/sorcery-jwt
|
|
110
|
+
source_code_uri: https://github.com/hayfever/sorcery-jwt
|
|
111
|
+
changelog_uri: https://github.com/hayfever/sorcery-jwt/CHANGELOG.md
|
|
137
112
|
rdoc_options: []
|
|
138
113
|
require_paths:
|
|
139
114
|
- lib
|
|
@@ -141,15 +116,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
141
116
|
requirements:
|
|
142
117
|
- - ">="
|
|
143
118
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '0'
|
|
119
|
+
version: '3.0'
|
|
145
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
121
|
requirements:
|
|
147
122
|
- - ">="
|
|
148
123
|
- !ruby/object:Gem::Version
|
|
149
124
|
version: '0'
|
|
150
125
|
requirements: []
|
|
151
|
-
rubygems_version: 3.
|
|
152
|
-
signing_key:
|
|
126
|
+
rubygems_version: 3.6.9
|
|
153
127
|
specification_version: 4
|
|
154
128
|
summary: Jwt extension for the Sorcery authentication library
|
|
155
129
|
test_files: []
|