discourse-omniauth-jwt 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/discourse-omniauth-jwt.gemspec +1 -1
- data/lib/omniauth/jwt/version.rb +1 -1
- data/lib/omniauth/strategies/jwt.rb +1 -1
- metadata +7 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 53e8fb65dd6bf7c31b6f9437f0a8e2646a2108956f6fa7fada5408648d4767eb
|
4
|
+
data.tar.gz: e88a6f1136da1e41322ad8f36846be4a286cbd587e10c6518e0ae74cf6a7a50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b627ad9f9a9e231885eecf76fabbe81f2e9a736ea1caf1e2e5e506c4ec895b63d2068e8dde9b6fbef1e2f4540ebd1e280c94e827cfe016b6e04a61f5e1643ca
|
7
|
+
data.tar.gz: 2cb0ff8afa8762b78f8be44eb164864dd0cf018877e25260820de35cc444fbb316c0e983768d0e1adbf79b9f6689bdea960fd03e9c082599e0b915ade880e005
|
data/lib/omniauth/jwt/version.rb
CHANGED
@@ -23,7 +23,7 @@ module OmniAuth
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def decoded
|
26
|
-
@decoded ||= ::JWT.decode(request.params['jwt'], options.secret, options.algorithm)[0]
|
26
|
+
@decoded ||= ::JWT.decode(request.params['jwt'], options.secret, true, { algorithm: options.algorithm })[0]
|
27
27
|
(options.required_claims || []).each do |field|
|
28
28
|
raise ClaimInvalid.new("Missing required '#{field}' claim.") if !@decoded.key?(field.to_s)
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discourse-omniauth-jwt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -99,16 +99,16 @@ dependencies:
|
|
99
99
|
name: jwt
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 2.2.1
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - "
|
109
|
+
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
111
|
+
version: 2.2.1
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: omniauth
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,12 +164,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
|
-
|
168
|
-
rubygems_version: 2.4.6
|
167
|
+
rubygems_version: 3.0.3
|
169
168
|
signing_key:
|
170
169
|
specification_version: 4
|
171
170
|
summary: An OmniAuth strategy to accept JWT-based single sign-on.
|
172
171
|
test_files:
|
173
172
|
- spec/lib/omniauth/strategies/jwt_spec.rb
|
174
173
|
- spec/spec_helper.rb
|
175
|
-
has_rdoc:
|