ClientCredentialClient class

OAuth2.0 ügyfél hitelesítő adatainak megadása

Extends
@azure/msal-common.BaseClient

Örökölt tulajdonságok

authority
logger

Metódusok

acquireToken(CommonClientCredentialRequest)

Nyilvános API a ClientCredential Flow-val rendelkező jogkivonat beszerzéséhez bizalmas ügyfelek számára

getCachedAuthenticationResult(CommonClientCredentialRequest, ClientConfiguration | ManagedIdentityConfiguration, ICrypto, Authority, CacheManager, null | ServerTelemetryManager)

gyorsítótárat keres, ha a jogkivonatok már gyorsítótárazva vannak

Örökölt metódusok

createTokenQueryParameters(BaseAuthRequest)

Lekérdezési sztring létrehozása a /token kéréshez

sendPostRequest<T>(RequestThumbprint, string, NetworkRequestOptions, string)

A sendPostRequestAsync burkolása a szükséges elővizsgálati és utólagos logikával

updateAuthority(string, string)

Frissíti az ügyfél szolgáltatói objektumát. A végpontfelderítést végre kell hajtani.

Konstruktor adatai

ClientCredentialClient(ClientConfiguration, IAppTokenProvider)

new ClientCredentialClient(configuration: ClientConfiguration, appTokenProvider?: IAppTokenProvider)

Paraméterek

configuration
@azure/msal-common.ClientConfiguration
appTokenProvider
IAppTokenProvider

Örökölt tulajdonság részletei

authority

authority: Authority

Tulajdonság értéke

@azure/msal-common.Authority

Öröklött forrás BaseClient.authority

logger

logger: Logger

Tulajdonság értéke

Öröklött forrás BaseClient.logger

Metódus adatai

acquireToken(CommonClientCredentialRequest)

Nyilvános API a ClientCredential Flow-val rendelkező jogkivonat beszerzéséhez bizalmas ügyfelek számára

function acquireToken(request: CommonClientCredentialRequest): Promise<null | AuthenticationResult>

Paraméterek

request
CommonClientCredentialRequest

A fejlesztő által biztosított CommonClientCredentialRequest

Válaszok

Promise<null | AuthenticationResult>

getCachedAuthenticationResult(CommonClientCredentialRequest, ClientConfiguration | ManagedIdentityConfiguration, ICrypto, Authority, CacheManager, null | ServerTelemetryManager)

gyorsítótárat keres, ha a jogkivonatok már gyorsítótárazva vannak

function getCachedAuthenticationResult(request: CommonClientCredentialRequest, config: ClientConfiguration | ManagedIdentityConfiguration, cryptoUtils: ICrypto, authority: Authority, cacheManager: CacheManager, serverTelemetryManager?: null | ServerTelemetryManager): Promise<[null | AuthenticationResult, CacheOutcome]>

Paraméterek

config

@azure/msal-common.ClientConfiguration | ManagedIdentityConfiguration

cryptoUtils
ICrypto
authority
@azure/msal-common.Authority
cacheManager
@azure/msal-common.CacheManager
serverTelemetryManager

null | @azure/msal-common.ServerTelemetryManager

Válaszok

Promise<[null | AuthenticationResult, CacheOutcome]>

Örökölt metódus részletei

createTokenQueryParameters(BaseAuthRequest)

Lekérdezési sztring létrehozása a /token kéréshez

function createTokenQueryParameters(request: BaseAuthRequest): string

Paraméterek

request
BaseAuthRequest

Válaszok

string

Öröklött forrás BaseClient.createTokenQueryParameters

sendPostRequest<T>(RequestThumbprint, string, NetworkRequestOptions, string)

A sendPostRequestAsync burkolása a szükséges elővizsgálati és utólagos logikával

function sendPostRequest<T>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string): Promise<NetworkResponse<T>>

Paraméterek

thumbprint
RequestThumbprint

Ujjlenyomat kérése szabályozáshoz

tokenEndpoint

string

Végpont, amelybe a POST

options
NetworkRequestOptions

A POST-kérelembe belefoglalandó törzsek és fejlécek

correlationId

string

A telemetriai korrelációs azonosító

Válaszok

Promise<NetworkResponse<T>>

Öröklött forrás BaseClient.sendPostRequest

updateAuthority(string, string)

Frissíti az ügyfél szolgáltatói objektumát. A végpontfelderítést végre kell hajtani.

function updateAuthority(cloudInstanceHostname: string, correlationId: string): Promise<void>

Paraméterek

cloudInstanceHostname

string

correlationId

string

Válaszok

Promise<void>

Öröklött forrás BaseClient.updateAuthority