Bearbeiten

Share via


RedirectHandler class

Extends

Constructors

RedirectHandler(AuthorizationCodeClient, BrowserCacheManager, CommonAuthorizationCodeRequest, Logger, ICrypto)

Methods

handleCodeResponseFromHash(string, string, Authority, INetworkModule)

Handle authorization code response in the window.

initiateAuthRequest(string, RedirectParams)

Redirects window to given URL.

Inherited Methods

handleCodeResponseFromServer(AuthorizationCodePayload, string, Authority, INetworkModule, boolean)

Process auth code response from AAD

Constructor Details

RedirectHandler(AuthorizationCodeClient, BrowserCacheManager, CommonAuthorizationCodeRequest, Logger, ICrypto)

new RedirectHandler(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, logger: Logger, browserCrypto: ICrypto)

Parameters

authCodeModule

AuthorizationCodeClient

storageImpl
BrowserCacheManager
authCodeRequest

CommonAuthorizationCodeRequest

logger

Logger

browserCrypto

ICrypto

Method Details

handleCodeResponseFromHash(string, string, Authority, INetworkModule)

Handle authorization code response in the window.

function handleCodeResponseFromHash(locationHash: string, state: string, authority: Authority, networkModule: INetworkModule): Promise<AuthenticationResult>

Parameters

locationHash

string

state

string

authority

Authority

networkModule

INetworkModule

Returns

Promise<AuthenticationResult>

initiateAuthRequest(string, RedirectParams)

Redirects window to given URL.

function initiateAuthRequest(requestUrl: string, params: RedirectParams): Promise<void>

Parameters

requestUrl

string

Returns

Promise<void>

Inherited Method Details

handleCodeResponseFromServer(AuthorizationCodePayload, string, Authority, INetworkModule, boolean)

Process auth code response from AAD

function handleCodeResponseFromServer(authCodeResponse: AuthorizationCodePayload, state: string, authority: Authority, networkModule: INetworkModule, validateNonce?: boolean): Promise<AuthenticationResult>

Parameters

authCodeResponse

AuthorizationCodePayload

state

string

authority

Authority

networkModule

INetworkModule

validateNonce

boolean

Returns

Promise<AuthenticationResult>

Inherited From InteractionHandler.handleCodeResponseFromServer