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 +4 -4
- data/.gitignore +1 -0
- data/lib/warden/auth0/strategy.rb +3 -3
- data/lib/warden/auth0/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 939379a82913caa0c5060cc39aae03e29d9c6e47c3eb1d719991c8fc081852cb
|
4
|
+
data.tar.gz: 1b6f48e30e6dcb001391006609da801a0558811893a8545ebf00699bf03c18d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2a20ac41090ed49a578445e41d5ae33f824a00ddba0a8b80bb591d445d54738227818a203b860532d74e767e8477e34505746a80174e777d23e97c4d13257a0
|
7
|
+
data.tar.gz: 4b8393824cafb8d731b25318ec918c81b36170b93309b2697c167419fd652f9672e2f130e7016684f12bc891a1ca4fa05222e790400a333ce0fc8e4a814f5020
|
data/.gitignore
CHANGED
@@ -20,7 +20,9 @@ module Warden
|
|
20
20
|
|
21
21
|
raise Errors::WrongAud, 'wrong audience' unless aud_claim_valid?
|
22
22
|
|
23
|
-
|
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)
|
data/lib/warden/auth0/version.rb
CHANGED
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.
|
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-
|
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
|