InteractionHandler class

Abstract class which defines operations for a browser interaction handling class.

Constructors

InteractionHandler(AuthorizationCodeClient, BrowserCacheManager, CommonAuthorizationCodeRequest, Logger)

Methods

handleCodeResponseFromHash(string, string, Authority, INetworkModule)

Function to handle response parameters from hash.

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

Process auth code response from AAD

Constructor Details

InteractionHandler(AuthorizationCodeClient, BrowserCacheManager, CommonAuthorizationCodeRequest, Logger)

new InteractionHandler(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, logger: Logger)

Parameters

authCodeModule

AuthorizationCodeClient

storageImpl
BrowserCacheManager
authCodeRequest

CommonAuthorizationCodeRequest

logger

Logger

Method Details

handleCodeResponseFromHash(string, string, Authority, INetworkModule)

Function to handle response parameters from hash.

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

Parameters

locationHash

string

state

string

authority

Authority

networkModule

INetworkModule

Returns

Promise<AuthenticationResult>

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>