From 50342f9721576981286f2affa2f3bb282ff29703 Mon Sep 17 00:00:00 2001 From: Andrew Kalek Date: Tue, 5 Nov 2019 11:14:42 -0500 Subject: [PATCH 1/2] Added auth_method to client config --- lib/influxdb/rails/configuration.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/influxdb/rails/configuration.rb b/lib/influxdb/rails/configuration.rb index c8d6065..21aeb65 100644 --- a/lib/influxdb/rails/configuration.rb +++ b/lib/influxdb/rails/configuration.rb @@ -34,6 +34,7 @@ class ClientConfig username: "root".freeze, password: "root".freeze, database: nil, + auth_method: "params".freeze, async: true, use_ssl: false, retry: nil, From f907f960ba075c2753da5f2732b8355b7d0a28b5 Mon Sep 17 00:00:00 2001 From: Andrew Kalek Date: Tue, 5 Nov 2019 11:17:42 -0500 Subject: [PATCH 2/2] Passing auth method to InfluxDB::Client --- lib/influxdb-rails.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/influxdb-rails.rb b/lib/influxdb-rails.rb index 46fab07..a0b13e7 100644 --- a/lib/influxdb-rails.rb +++ b/lib/influxdb-rails.rb @@ -36,6 +36,7 @@ def client database: cfg.database, username: cfg.username, password: cfg.password, + auth_method: cfg.auth_method, hosts: cfg.hosts, port: cfg.port, async: cfg.async,