/
ClientCredentialRequest.ts
29 lines (27 loc) · 1.31 KB
/
ClientCredentialRequest.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { CommonClientCredentialRequest } from "@azure/msal-common";
/**
* CommonClientCredentialRequest
* - scopes - Array of scopes the application is requesting access to. Typically contains only the .default scope for a single resource. See: https://learn.microsoft.com/azure/active-directory/develop/scopes-oidc#the-default-scope
* - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
* - clientAssertion - A Base64Url-encoded signed JWT assertion string used in the Client Credential flow
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
* @public
*/
export type ClientCredentialRequest = Partial<
Omit<
CommonClientCredentialRequest,
| "resourceRequestMethod"
| "resourceRequestUri"
| "requestedClaimsHash"
| "clientAssertion"
| "storeInCache"
>
> & {
clientAssertion?: string;
};