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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ea7ddf9e4c0b0bf215d9cbcc501730d35054d8e8
4
- data.tar.gz: 217dbfb0d500fea97905c8fa3cb790b4150408d8
2
+ SHA256:
3
+ metadata.gz: 53e8fb65dd6bf7c31b6f9437f0a8e2646a2108956f6fa7fada5408648d4767eb
4
+ data.tar.gz: e88a6f1136da1e41322ad8f36846be4a286cbd587e10c6518e0ae74cf6a7a50d
5
5
  SHA512:
6
- metadata.gz: 4a9947aba233c00c60f755c52f167c8f4b85d4e1197d092f8f5426516ad35ae1f8e1a52e9684da68d099956ec60350449f5555b9e2547f7c608ebb878baa442e
7
- data.tar.gz: 2c86b68ade3b1fc70fb5b301a1f7747c22b9c195ec93c58ac139aa07368b41cefc2166c2ed76cbe5b2fec96203976cd35141983433394c16ba5a14c47016ea51
6
+ metadata.gz: 0b627ad9f9a9e231885eecf76fabbe81f2e9a736ea1caf1e2e5e506c4ec895b63d2068e8dde9b6fbef1e2f4540ebd1e280c94e827cfe016b6e04a61f5e1643ca
7
+ data.tar.gz: 2cb0ff8afa8762b78f8be44eb164864dd0cf018877e25260820de35cc444fbb316c0e983768d0e1adbf79b9f6689bdea960fd03e9c082599e0b915ade880e005
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "guard-rspec"
26
26
  spec.add_development_dependency "rack-test"
27
27
 
28
- spec.add_dependency "jwt"
28
+ spec.add_dependency "jwt", "~> 2.2.1"
29
29
  spec.add_dependency "omniauth", "~> 1.1"
30
30
  end
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module JWT
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -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.2
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: 2015-09-14 00:00:00.000000000 Z
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: '0'
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: '0'
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
- rubyforge_project:
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: