warden-auth0 0.1.0 → 0.2.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 +5 -3
- data/lib/warden/auth0/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37731f848d70bcbb50ae044f5b36b784af7d5588493164133212b886c8fac6f8
|
4
|
+
data.tar.gz: fce5230a7893cf935801b4d6681cb2b564dad1848d49a226d97c368de802cba0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e9c3a5c1a7b1247121dcfdb1f22c4bb3daad043168f0040a59d12d1367a1a5301d6fe7ffd6f7923169fc12b97b1cd8b51ad56529f6686a77409a26c45791d9
|
7
|
+
data.tar.gz: 53c67aecae629bb63556ebdd9eeca868ffcb9303b9dceff5d20a676d0d06fe79b1e8ba1c3b4e2102cb6fc90c87b248f12ac385f34295a380e3d970c8eb7fc17e
|
data/.gitignore
CHANGED
@@ -20,7 +20,7 @@ module Warden
|
|
20
20
|
|
21
21
|
raise Errors::WrongAud, 'wrong audience' unless aud_claim_valid?
|
22
22
|
|
23
|
-
user =
|
23
|
+
user = user_resolver(decoded_token)
|
24
24
|
|
25
25
|
raise Warden::Auth0::Errors::NilUser, 'nil user' unless user
|
26
26
|
|
@@ -50,6 +50,10 @@ module Warden
|
|
50
50
|
TokenDecoder.new.call(token)
|
51
51
|
end
|
52
52
|
|
53
|
+
def user_resolver(decoded_token)
|
54
|
+
raise "TODO: Implement!"
|
55
|
+
end
|
56
|
+
|
53
57
|
def configured_aud
|
54
58
|
configured_aud = Warden::Auth0.config.aud
|
55
59
|
raise Errors::NoConfiguredAud if configured_aud.nil?
|
@@ -84,5 +88,3 @@ module Warden
|
|
84
88
|
end
|
85
89
|
end
|
86
90
|
end
|
87
|
-
|
88
|
-
Warden::Strategies.add(:auth0, Warden::Auth0::Strategy)
|
data/lib/warden/auth0/version.rb
CHANGED