mirror of
https://github.com/MeowLynxSea/Proksea.git
synced 2025-07-10 19:34:41 +00:00
23 lines
1.4 KiB
TypeScript
23 lines
1.4 KiB
TypeScript
/// <reference types="node" />
|
|
import { ILoopbackClient } from "../network/ILoopbackClient.js";
|
|
import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";
|
|
/**
|
|
* Request object passed by user to configure acquireTokenInteractive API
|
|
*
|
|
* - openBrowser - Function to open a browser instance on user's system.
|
|
* - scopes - Array of scopes the application is requesting access to.
|
|
* - successTemplate: - Template to be displayed on the opened browser instance upon successful token acquisition.
|
|
* - errorTemplate - Template to be displayed on the opened browser instance upon token acquisition failure.
|
|
* - windowHandle - Used in native broker flows to properly parent the native broker window
|
|
* - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
|
|
* @public
|
|
*/
|
|
export type InteractiveRequest = Pick<AuthorizationUrlRequest, "authority" | "correlationId" | "claims" | "azureCloudOptions" | "account" | "extraQueryParameters" | "tokenQueryParameters" | "extraScopesToConsent" | "loginHint" | "prompt"> & {
|
|
openBrowser: (url: string) => Promise<void>;
|
|
scopes?: Array<string>;
|
|
successTemplate?: string;
|
|
errorTemplate?: string;
|
|
windowHandle?: Buffer;
|
|
loopbackClient?: ILoopbackClient;
|
|
};
|
|
//# sourceMappingURL=InteractiveRequest.d.ts.map
|