healthier 0.1.7 → 0.1.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/healthier/api_authenticator.rb +2 -6
- data/lib/healthier/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: aad15d777d50bce0e5ef2f620b4f34249298dc87b709b851fa06df41b3eb7152
|
4
|
+
data.tar.gz: 6fd08ae06b1c5e269b248776507c6fa20cbcb57502f5a7dc7004426559bb627a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f3540f1b7d0f90603e3ba7776b76873c761c11b28bfc8cfb5e3424040e34b0f9bfe3b277085a8b7ffc11eff6d5d7e896cfc57f43ce1a8d200ce9304563296d1
|
7
|
+
data.tar.gz: 37104cd689081b52a891c56feae0f7f6686f09afea731ad3120cc8df21dba3b8f94b57f4e49de3c411dc53f85069b415a14a54ad61e3d1d4b2cbc80bcf220b10
|
@@ -17,12 +17,8 @@ module Healthier
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def authenticate_with_bearer_token
|
20
|
-
tok = request.
|
21
|
-
raise StandardError, '
|
22
|
-
|
23
|
-
controller.authenticate_with_http_token do |token, _options|
|
24
|
-
raise StandardError, 'Invalid token' unless ENV['BEARER_TOKEN'] == token
|
25
|
-
end
|
20
|
+
tok = request.headers['MONITORING']
|
21
|
+
raise StandardError, 'Invalid token' unless tok.eql?(ENV['BEARER_TOKEN'])
|
26
22
|
end
|
27
23
|
|
28
24
|
def authenticate_with_basic_auth
|
data/lib/healthier/version.rb
CHANGED