ChallengeCallbacks interface

Options to override the processing of Continuous Access Evaluation challenges.

Methods

authorizeRequest(AuthorizeRequestOptions)

Allows for the authorization of the main request of this policy before it's sent.

authorizeRequestOnChallenge(AuthorizeRequestOnChallengeOptions)

Allows to handle authentication challenges and to re-authorize the request. The response containing the challenge is options.response. If this method returns true, the underlying request will be sent once again. The request may be modified before being sent.

Method Details

authorizeRequest(AuthorizeRequestOptions)

Allows for the authorization of the main request of this policy before it's sent.

function authorizeRequest(options: AuthorizeRequestOptions): Promise<void>

Parameters

Returns

Promise<void>

authorizeRequestOnChallenge(AuthorizeRequestOnChallengeOptions)

Allows to handle authentication challenges and to re-authorize the request. The response containing the challenge is options.response. If this method returns true, the underlying request will be sent once again. The request may be modified before being sent.

function authorizeRequestOnChallenge(options: AuthorizeRequestOnChallengeOptions): Promise<boolean>

Parameters

Returns

Promise<boolean>