Auth: Able to use API tokens for authentication (#1662)
* Auth: Able to use API tokens for authentication * Update change log
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { BusEventWithPayload, DataQuery, DataSourceJsonData, DataSourceRef, SelectableValue } from '@grafana/data';
|
||||
|
||||
export interface ZabbixDSOptions extends DataSourceJsonData {
|
||||
authType?: ZabbixAuthType;
|
||||
username: string;
|
||||
password?: string;
|
||||
trends: boolean;
|
||||
@@ -19,6 +20,7 @@ export interface ZabbixDSOptions extends DataSourceJsonData {
|
||||
|
||||
export interface ZabbixSecureJSONData {
|
||||
password?: string;
|
||||
apiToken?: string;
|
||||
}
|
||||
|
||||
export interface ZabbixConnectionInfo {
|
||||
@@ -408,3 +410,8 @@ export interface ZBXAlert {
|
||||
export class ZBXQueryUpdatedEvent extends BusEventWithPayload<any> {
|
||||
static type = 'zbx-query-updated';
|
||||
}
|
||||
|
||||
export enum ZabbixAuthType {
|
||||
UserLogin = 'userLogin',
|
||||
Token = 'token',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user