devise_auth0_jwt_strategy 0.0.9 → 0.0.10

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: baf736b13da8084661e2289e7ec4f4d39f0afa9b
4
- data.tar.gz: 2746846ea9080477eb9490d6564e475b821d41a1
2
+ SHA256:
3
+ metadata.gz: c7694f3d7300f7e070b2227fd331dab4ac7788fd0eab8b8652e3f2b7b91e7b65
4
+ data.tar.gz: c2a1bf64fe4cedc46bf122ff86a179085b27cd522fdfacc00acba3639d359b35
5
5
  SHA512:
6
- metadata.gz: d6f16acbcfbc6ec7e5c52a6da848704d33fdb495b35ed72883dd04bb7e2a1340bc6a82a843e358e00a84b01e2d747c3d90862831b6ca76431d83427ba5dabdf7
7
- data.tar.gz: b0af551607c40f19c7c1f11e874bd8244d170076c9e3976bcbd1f95aaaef24e897736b3bd662a58f8970acc01210062af917c2edd81a3b37c168b950be900c12
6
+ metadata.gz: af86ed691ddda937c8cea8291c1e1626a0e08dd94aa70d520b372ae8b9cce13a1c4945e3ae77eb91c078e873e3d346ab7626961cdda3b81328f9f0e693175e8e
7
+ data.tar.gz: 1daf2df9a7759a679f8aeeb726639245ca938b6bd8970919936a7af2bf8c26bfb31bd638bbcdff90fd5063a2b8e93a13849ef077e2c93eb25c806b02aff5f97a
@@ -1,5 +1,6 @@
1
1
  require 'jwt'
2
2
  require 'devise'
3
+ require "request_store"
3
4
 
4
5
  module Devise
5
6
  module Strategies
@@ -91,6 +92,9 @@ module Devise
91
92
  else
92
93
  u.ignore_timedout = true if u.respond_to?(:ignore_timedout=)
93
94
  u.ignore_active = to_boolean(payload['ignore_active']) if u.respond_to?(:ignore_active=)
95
+
96
+ ::RequestStore.store[:jwt_scopes] = payload['scopes']
97
+
94
98
  success!(u)
95
99
 
96
100
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_auth0_jwt_strategy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McGraw
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: request_store
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rails
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
108
  - !ruby/object:Gem::Version
95
109
  version: '0'
96
110
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.6.13
111
+ rubygems_version: 3.1.2
99
112
  signing_key:
100
113
  specification_version: 4
101
114
  summary: Authenticate requests using an Auth0 JWT passed by HTTP header