firebase_token_authentication 0.1.0 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46b815bea1125de46657346311dcebb824599311002a855b01c1f547e3fa7ebc
|
4
|
+
data.tar.gz: cd5a9fb3d6cae10429b344426909f143706a1c9d607a8b9b69d4d9dcc066e439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be745baa590030ed8de336a11879a3f99afbe7da023af3a8242c3a4370b814edd36f36c2e0aa060535100158aaadd20c1117a287b72682bd21fb837f6e96f37
|
7
|
+
data.tar.gz: b29b18965dfa204ba17f6f32e88254c1a8dee1b049723bf8836977367af32f10a5e65148f16bbf6250fe1b2f2b591c6e7b1d357ac0048d9cbea6e58ee2f271e4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
|
4
|
+
firebase_token_authentication (0.1.1)
|
5
5
|
faraday
|
6
6
|
faraday-http-cache
|
7
7
|
jwt
|
@@ -71,7 +71,7 @@ PLATFORMS
|
|
71
71
|
|
72
72
|
DEPENDENCIES
|
73
73
|
debug
|
74
|
-
|
74
|
+
firebase_token_authentication!
|
75
75
|
rake (~> 13.0)
|
76
76
|
rspec (~> 3.0)
|
77
77
|
rubocop (~> 1.21)
|
@@ -2,11 +2,12 @@
|
|
2
2
|
|
3
3
|
module FirebaseTokenAuthentication
|
4
4
|
class Configuration
|
5
|
-
attr_accessor :cache_store, :firebase_project_id
|
5
|
+
attr_accessor :cache_store, :firebase_project_id, :logger
|
6
6
|
|
7
7
|
def initialize
|
8
8
|
@cache_store = nil
|
9
9
|
@firebase_project_id = nil
|
10
|
+
@logger = nil
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
@@ -16,7 +16,11 @@ module FirebaseTokenAuthentication
|
|
16
16
|
|
17
17
|
def fetch_certificates
|
18
18
|
client = Faraday.new do |builder|
|
19
|
-
builder.use Faraday::HttpCache,
|
19
|
+
builder.use Faraday::HttpCache,
|
20
|
+
store: FirebaseTokenAuthentication.config.cache_store,
|
21
|
+
logger: FirebaseTokenAuthentication.config.logger
|
22
|
+
|
23
|
+
builder.adapter Faraday.default_adapter
|
20
24
|
end
|
21
25
|
|
22
26
|
response = client.get(GOOGLE_CERT_URL, {}, { "Accept" => "application/json" })
|