warden-auth0 0.1.0 → 0.3.0

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
2
  SHA256:
3
- metadata.gz: 6535f50d8f192c86cebdd135e411c1e7d28f54c2681a4a3993b730dfaed368b5
4
- data.tar.gz: 0df77297cee513a2eb030e6456f5c4b38b7a3780c8e34682e5dea388f7c50303
3
+ metadata.gz: 939379a82913caa0c5060cc39aae03e29d9c6e47c3eb1d719991c8fc081852cb
4
+ data.tar.gz: 1b6f48e30e6dcb001391006609da801a0558811893a8545ebf00699bf03c18d4
5
5
  SHA512:
6
- metadata.gz: 4438b8d430ce357ce55bf6b9088ba27a38e00f7d9232e615fd71cda465e77aef224bea62679211edbf4f0bb99d3ab4ea354be9bf5c1ce46798dbfbbee18bbe60
7
- data.tar.gz: 9c2b3dcb75741bab6732faf2d5876b2d07b8e42978f4baa7e5e478ecc23f019f8e78dce919d4d04b5a09e2b82364710dd188a0960c6eb6e8abaa285730efd017
6
+ metadata.gz: c2a20ac41090ed49a578445e41d5ae33f824a00ddba0a8b80bb591d445d54738227818a203b860532d74e767e8477e34505746a80174e777d23e97c4d13257a0
7
+ data.tar.gz: 4b8393824cafb8d731b25318ec918c81b36170b93309b2697c167419fd652f9672e2f130e7016684f12bc891a1ca4fa05222e790400a333ce0fc8e4a814f5020
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .overcommit_gems.rb.lock
11
+ *.gem
@@ -20,7 +20,9 @@ module Warden
20
20
 
21
21
  raise Errors::WrongAud, 'wrong audience' unless aud_claim_valid?
22
22
 
23
- user = Warden::Auth0.config.user_resolver.call(decoded_token)
23
+ method = "#{scope}_resolver"
24
+ raise "unimplemented resolver #{method}" unless respond_to?(method)
25
+ user = send(method, decoded_token)
24
26
 
25
27
  raise Warden::Auth0::Errors::NilUser, 'nil user' unless user
26
28
 
@@ -84,5 +86,3 @@ module Warden
84
86
  end
85
87
  end
86
88
  end
87
-
88
- Warden::Strategies.add(:auth0, Warden::Auth0::Strategy)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Warden
4
4
  module Auth0
5
- VERSION = '0.1.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 1KOMMA5º
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-13 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-auto_inject