File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
public/app/plugins/datasource/influxdb Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default class InfluxDatasource {
16
16
name : string ;
17
17
database : any ;
18
18
basicAuth : any ;
19
+ withCredentials : any ;
19
20
interval : any ;
20
21
supportAnnotations : boolean ;
21
22
supportMetrics : boolean ;
@@ -33,6 +34,7 @@ export default class InfluxDatasource {
33
34
this . name = instanceSettings . name ;
34
35
this . database = instanceSettings . database ;
35
36
this . basicAuth = instanceSettings . basicAuth ;
37
+ this . withCredentials = instanceSettings . withCredentials ;
36
38
this . interval = ( instanceSettings . jsonData || { } ) . timeInterval ;
37
39
this . supportAnnotations = true ;
38
40
this . supportMetrics = true ;
@@ -187,6 +189,9 @@ export default class InfluxDatasource {
187
189
} ;
188
190
189
191
options . headers = options . headers || { } ;
192
+ if ( this . basicAuth || this . withCredentials ) {
193
+ options . withCredentials = true ;
194
+ }
190
195
if ( self . basicAuth ) {
191
196
options . headers . Authorization = self . basicAuth ;
192
197
}
You can’t perform that action at this time.
0 commit comments