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