AuthorizeRequestOnChallengeOptions interface

Options sent to the authorizeRequestOnChallenge callback

Properties

getAccessToken

Function that retrieves either a cached access token or a new access token.

logger

A logger, if one was sent through the HTTP pipeline.

request

Request that the policy is trying to fulfill.

response

Response containing the challenge.

scopes

The scopes for which the bearer token applies.

Property Details

getAccessToken

Function that retrieves either a cached access token or a new access token.

getAccessToken: (scopes: string[], options: GetTokenOptions) => Promise<null | AccessToken>

Property Value

(scopes: string[], options: GetTokenOptions) => Promise<null | AccessToken>

logger

A logger, if one was sent through the HTTP pipeline.

logger?: AzureLogger

Property Value

request

Request that the policy is trying to fulfill.

request: PipelineRequest

Property Value

response

Response containing the challenge.

response: PipelineResponse

Property Value

scopes

The scopes for which the bearer token applies.

scopes: string[]

Property Value

string[]