AuthorizeRequestOptions interface

Options sent to the authorizeRequest 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.

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

scopes

The scopes for which the bearer token applies.

scopes: string[]

Property Value

string[]