ocean-rails 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/zeromq_logger.rb +1 -1
- data/lib/ocean/ocean_application_controller.rb +1 -0
- data/lib/ocean/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e447d4f5093f7cafc67fd52f9fea8fe563f7c7
|
4
|
+
data.tar.gz: b9d938fcd817ca784af0bb7278239166dc5e73df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c578ceaa77bae5eca755263d68434dbdf87c6b16ce57de1efac0e1a6c04b51b9b841fe3c15a69d10cdd8f512bbac65ad0da8f12b8b15210124ff52bc42d512
|
7
|
+
data.tar.gz: dc87dfae698a8bb3aaef8000c40cce655db9820a3114555f626de5e47a6ef40e555ab0eec9d7735b2446ee99159d76f2f58554ea6586c8d9defaacb6bd76b3bb
|
@@ -47,7 +47,7 @@ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
|
|
47
47
|
}
|
48
48
|
data[:params] = params if params.present?
|
49
49
|
data[:filter] = Thread.current[:filter] if Thread.current[:filter]
|
50
|
-
data[:token] =
|
50
|
+
data[:token] = Thread.current[:x_api_token] if Thread.current[:x_api_token].present?
|
51
51
|
|
52
52
|
Thread.current[:logdata] = data
|
53
53
|
Thread.current[:filter] = nil
|
@@ -30,6 +30,7 @@ module OceanApplicationController
|
|
30
30
|
def require_x_api_token
|
31
31
|
return true if ENV['NO_OCEAN_AUTH']
|
32
32
|
@x_api_token = request.headers['X-API-Token']
|
33
|
+
Thread.current[:x_api_token] = @x_api_token
|
33
34
|
return true if @x_api_token.present?
|
34
35
|
logger.info "X-API-Token missing"
|
35
36
|
render_api_error 400, "X-API-Token missing"
|
data/lib/ocean/version.rb
CHANGED