blob: 6378da4b7b137488f1d56eee9ad1a9f2f246f80e [file] [log] [blame]
import ifm = require('../Interfaces');
export declare class BasicCredentialHandler implements ifm.IRequestHandler {
username: string;
password: string;
allowCrossOriginAuthentication: boolean;
origin: string;
constructor(username: string, password: string, allowCrossOriginAuthentication?: boolean);
prepareRequest(options: any): void;
canHandleAuthentication(response: ifm.IHttpClientResponse): boolean;
handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise<ifm.IHttpClientResponse>;
}