nnanh3-msal-browser
Version:
Thư viện đã custom của azure masl có common kèm trong
25 lines • 1.38 kB
TypeScript
import { AuthorizationCodeClient, CommonAuthorizationCodeRequest, ICrypto, AuthenticationResult, Authority, INetworkModule, Logger } from "@azure/msal-common";
import { BrowserCacheManager } from "../cache/BrowserCacheManager";
import { InteractionHandler, InteractionParams } from "./InteractionHandler";
import { INavigationClient } from "../navigation/INavigationClient";
export declare type RedirectParams = InteractionParams & {
navigationClient: INavigationClient;
redirectTimeout: number;
redirectStartPage: string;
onRedirectNavigate?: (url: string) => void | boolean;
};
export declare class RedirectHandler extends InteractionHandler {
private browserCrypto;
constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, browserRequestLogger: Logger, browserCrypto: ICrypto);
/**
* Redirects window to given URL.
* @param urlNavigate
*/
initiateAuthRequest(requestUrl: string, params: RedirectParams): Promise<void>;
/**
* Handle authorization code response in the window.
* @param hash
*/
handleCodeResponse(locationHash: string, state: string, authority: Authority, networkModule: INetworkModule, clientId?: string): Promise<AuthenticationResult>;
}
//# sourceMappingURL=RedirectHandler.d.ts.map