34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import { AuthenticationResult, BaseClient, ClientConfiguration, CommonClientCredentialRequest, IAppTokenProvider } from "@azure/msal-common";
|
|
/**
|
|
* OAuth2.0 client credential grant
|
|
*/
|
|
export declare class ClientCredentialClient extends BaseClient {
|
|
private scopeSet;
|
|
private readonly appTokenProvider?;
|
|
constructor(configuration: ClientConfiguration, appTokenProvider?: IAppTokenProvider);
|
|
/**
|
|
* Public API to acquire a token with ClientCredential Flow for Confidential clients
|
|
* @param request
|
|
*/
|
|
acquireToken(request: CommonClientCredentialRequest): Promise<AuthenticationResult | null>;
|
|
/**
|
|
* looks up cache if the tokens are cached already
|
|
*/
|
|
private getCachedAuthenticationResult;
|
|
/**
|
|
* Reads access token from the cache
|
|
*/
|
|
private readAccessTokenFromCache;
|
|
/**
|
|
* Makes a network call to request the token from the service
|
|
* @param request
|
|
* @param authority
|
|
*/
|
|
private executeTokenRequest;
|
|
/**
|
|
* generate the request to the server in the acceptable format
|
|
* @param request
|
|
*/
|
|
private createTokenRequestBody;
|
|
}
|
|
//# sourceMappingURL=ClientCredentialClient.d.ts.map
|