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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6535f50d8f192c86cebdd135e411c1e7d28f54c2681a4a3993b730dfaed368b5
4
- data.tar.gz: 0df77297cee513a2eb030e6456f5c4b38b7a3780c8e34682e5dea388f7c50303
3
+ metadata.gz: 37731f848d70bcbb50ae044f5b36b784af7d5588493164133212b886c8fac6f8
4
+ data.tar.gz: fce5230a7893cf935801b4d6681cb2b564dad1848d49a226d97c368de802cba0
5
5
  SHA512:
6
- metadata.gz: 4438b8d430ce357ce55bf6b9088ba27a38e00f7d9232e615fd71cda465e77aef224bea62679211edbf4f0bb99d3ab4ea354be9bf5c1ce46798dbfbbee18bbe60
7
- data.tar.gz: 9c2b3dcb75741bab6732faf2d5876b2d07b8e42978f4baa7e5e478ecc23f019f8e78dce919d4d04b5a09e2b82364710dd188a0960c6eb6e8abaa285730efd017
6
+ metadata.gz: 94e9c3a5c1a7b1247121dcfdb1f22c4bb3daad043168f0040a59d12d1367a1a5301d6fe7ffd6f7923169fc12b97b1cd8b51ad56529f6686a77409a26c45791d9
7
+ data.tar.gz: 53c67aecae629bb63556ebdd9eeca868ffcb9303b9dceff5d20a676d0d06fe79b1e8ba1c3b4e2102cb6fc90c87b248f12ac385f34295a380e3d970c8eb7fc17e
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,7 @@ 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
+ 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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Warden
4
4
  module Auth0
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 1KOMMA5º