@itwin/insights-client
Version:
Insights client for the iTwin platform
23 lines • 835 B
TypeScript
import { TestAuthorizationClientConfig } from "./TestAuthorizationClientConfigImpl";
export interface TestUserCredentials {
email: string;
password: string;
scopes: string;
}
export declare class TestAuthorizationClient {
private readonly _authConfig;
private _pageLoadedEvent;
private _consentPageTitle;
private _pageElementIds;
constructor(_authConfig: TestAuthorizationClientConfig);
getAccessToken(testUserCredentials: TestUserCredentials): Promise<string>;
private getAuthorizationUrl;
private fillCredentials;
private consentIfNeeded;
private exchangeAuthorizationCodeForAccessToken;
private interceptRedirectAndGetAuthorizationCode;
private respondSuccess;
private getCodeFromUrl;
private captureElement;
}
//# sourceMappingURL=TestAuthorizationClient.d.ts.map