@azure/msal-node 5.0.0-alpha.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/NodeStorage.mjs +1 -1
- package/dist/cache/NodeStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs.map +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +42 -0
- package/dist/client/BaseClient.d.ts.map +1 -0
- package/dist/client/BaseClient.mjs +68 -0
- package/dist/client/BaseClient.mjs.map +1 -0
- package/dist/client/ClientApplication.mjs +1 -1
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientAssertion.mjs.map +1 -1
- package/dist/client/ClientCredentialClient.d.ts +2 -1
- package/dist/client/ClientCredentialClient.d.ts.map +1 -1
- package/dist/client/ClientCredentialClient.mjs +4 -3
- package/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/dist/client/DeviceCodeClient.d.ts +2 -1
- package/dist/client/DeviceCodeClient.d.ts.map +1 -1
- package/dist/client/DeviceCodeClient.mjs +6 -5
- package/dist/client/DeviceCodeClient.mjs.map +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.d.ts +54 -0
- package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +55 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +82 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +81 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +55 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.d.ts +44 -22
- package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +44 -22
- package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +66 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +57 -23
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -1
- package/dist/client/OnBehalfOfClient.d.ts +2 -1
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.mjs +4 -3
- package/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.mjs +21 -5
- package/dist/client/PublicClientApplication.mjs.map +1 -1
- package/dist/client/UsernamePasswordClient.d.ts +2 -1
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +4 -3
- package/dist/client/UsernamePasswordClient.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +0 -6
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +3 -5
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs.map +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +3 -3
- package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/CryptoProvider.mjs.map +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs.map +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/HashUtils.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs.map +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -1
- package/dist/error/NodeAuthError.d.ts +8 -0
- package/dist/error/NodeAuthError.d.ts.map +1 -1
- package/dist/error/NodeAuthError.mjs +11 -1
- package/dist/error/NodeAuthError.mjs.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.d.ts +54 -14
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.mjs +140 -262
- package/dist/network/HttpClient.mjs.map +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs.map +1 -1
- package/dist/network/LoopbackClient.mjs +1 -1
- package/dist/network/LoopbackClient.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +2 -2
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +12 -10
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +6 -24
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/ClientCredentialRequest.d.ts +3 -6
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +10 -7
- package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +13 -10
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +8 -7
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +6 -8
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/dist/request/DeviceCodeRequest.d.ts +6 -6
- package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/InteractiveRequest.d.ts +19 -8
- package/dist/request/InteractiveRequest.d.ts.map +1 -1
- package/dist/request/ManagedIdentityRequest.d.ts +6 -2
- package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
- package/dist/request/ManagedIdentityRequestParams.d.ts +9 -3
- package/dist/request/ManagedIdentityRequestParams.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +7 -6
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/RefreshTokenRequest.d.ts +9 -7
- package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/SilentFlowRequest.d.ts +6 -7
- package/dist/request/SilentFlowRequest.d.ts.map +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts +9 -8
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs.map +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs.map +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs.map +1 -1
- package/dist/utils/Constants.d.ts +2 -9
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +4 -12
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/EncodingUtils.mjs.map +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs.map +1 -1
- package/lib/msal-node.cjs +5788 -5371
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/client/BaseClient.d.ts +42 -0
- package/lib/types/client/BaseClient.d.ts.map +1 -0
- package/lib/types/client/ClientCredentialClient.d.ts +2 -1
- package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
- package/lib/types/client/DeviceCodeClient.d.ts +2 -1
- package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts +54 -0
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts +44 -22
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/lib/types/client/OnBehalfOfClient.d.ts +2 -1
- package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -1
- package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/client/UsernamePasswordClient.d.ts +2 -1
- package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +0 -6
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/error/NodeAuthError.d.ts +8 -0
- package/lib/types/error/NodeAuthError.d.ts.map +1 -1
- package/lib/types/index.d.ts +0 -6
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/network/HttpClient.d.ts +54 -14
- package/lib/types/network/HttpClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts +12 -10
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/AuthorizationUrlRequest.d.ts +6 -24
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/lib/types/request/ClientCredentialRequest.d.ts +3 -6
- package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +10 -7
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +13 -10
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +8 -7
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +6 -8
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/lib/types/request/DeviceCodeRequest.d.ts +6 -6
- package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -1
- package/lib/types/request/InteractiveRequest.d.ts +19 -8
- package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
- package/lib/types/request/ManagedIdentityRequest.d.ts +6 -2
- package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -1
- package/lib/types/request/ManagedIdentityRequestParams.d.ts +9 -3
- package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +1 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts +7 -6
- package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/lib/types/request/RefreshTokenRequest.d.ts +9 -7
- package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
- package/lib/types/request/SilentFlowRequest.d.ts +6 -7
- package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts +9 -8
- package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +2 -9
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/package.json +88 -88
- package/src/client/BaseClient.ts +158 -0
- package/src/client/ClientCredentialClient.ts +2 -3
- package/src/client/DeviceCodeClient.ts +4 -5
- package/src/client/ManagedIdentitySources/AppService.ts +54 -0
- package/src/client/ManagedIdentitySources/AzureArc.ts +81 -0
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +92 -2
- package/src/client/ManagedIdentitySources/CloudShell.ts +54 -0
- package/src/client/ManagedIdentitySources/Imds.ts +43 -21
- package/src/client/ManagedIdentitySources/MachineLearning.ts +65 -0
- package/src/client/ManagedIdentitySources/ServiceFabric.ts +56 -22
- package/src/client/OnBehalfOfClient.ts +2 -3
- package/src/client/PublicClientApplication.ts +22 -4
- package/src/client/UsernamePasswordClient.ts +2 -3
- package/src/config/Configuration.ts +2 -14
- package/src/config/ManagedIdentityRequestParameters.ts +2 -2
- package/src/error/NodeAuthError.ts +14 -0
- package/src/index.ts +0 -8
- package/src/network/HttpClient.ts +166 -372
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +1 -1
- package/src/request/AuthorizationCodeRequest.ts +12 -10
- package/src/request/AuthorizationUrlRequest.ts +6 -24
- package/src/request/ClientCredentialRequest.ts +3 -6
- package/src/request/CommonClientCredentialRequest.ts +13 -7
- package/src/request/CommonDeviceCodeRequest.ts +13 -14
- package/src/request/CommonOnBehalfOfRequest.ts +11 -7
- package/src/request/CommonUsernamePasswordRequest.ts +6 -8
- package/src/request/DeviceCodeRequest.ts +6 -6
- package/src/request/InteractiveRequest.ts +19 -11
- package/src/request/ManagedIdentityRequest.ts +6 -2
- package/src/request/ManagedIdentityRequestParams.ts +9 -3
- package/src/request/OnBehalfOfRequest.ts +7 -6
- package/src/request/RefreshTokenRequest.ts +9 -7
- package/src/request/SilentFlowRequest.ts +6 -7
- package/src/request/UsernamePasswordRequest.ts +9 -8
- package/src/utils/Constants.ts +2 -11
- package/dist/utils/NetworkUtils.mjs +0 -43
- package/dist/utils/NetworkUtils.mjs.map +0 -1
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { DeviceCodeResponse, StringDict, BaseAuthRequest } from "@azure/msal-common/node";
|
|
2
2
|
/**
|
|
3
3
|
* Parameters for Oauth2 device code flow.
|
|
4
|
-
* - scopes - Array of scopes the application is requesting access to.
|
|
5
|
-
* - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
|
|
6
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
7
|
-
* - deviceCodeCallback - Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
|
|
8
|
-
* - cancel - Boolean to cancel polling of device code endpoint. While the user authenticates on a separate device, MSAL polls the the token endpoint of security token service for the interval specified in the device code response (usually 15 minutes). To stop polling and cancel the request, set cancel=true.
|
|
9
|
-
* - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
|
|
10
|
-
* - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
|
|
11
|
-
* - timeout - Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
|
|
12
|
-
* - extraQueryParameters - String to string map of custom query parameters added to the query string
|
|
13
4
|
*/
|
|
14
|
-
export type CommonDeviceCodeRequest =
|
|
5
|
+
export type CommonDeviceCodeRequest = BaseAuthRequest & {
|
|
6
|
+
/**
|
|
7
|
+
* Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
|
|
8
|
+
*/
|
|
15
9
|
deviceCodeCallback: (response: DeviceCodeResponse) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Boolean to cancel polling of device code endpoint. While the user authenticates on a separate device, MSAL polls the the token endpoint of security token service for the interval specified in the device code response (usually 15 minutes). To stop polling and cancel the request, set cancel=true.
|
|
12
|
+
*/
|
|
16
13
|
cancel?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
|
|
16
|
+
*/
|
|
17
17
|
timeout?: number;
|
|
18
|
+
/**
|
|
19
|
+
* String to string map of custom query parameters added to outgoing token service requests.
|
|
20
|
+
*/
|
|
18
21
|
extraQueryParameters?: StringDict;
|
|
19
22
|
};
|
|
20
23
|
//# sourceMappingURL=CommonDeviceCodeRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC
|
|
1
|
+
{"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD;;OAEG;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { BaseAuthRequest } from "@azure/msal-common/node";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
|
|
5
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
6
|
-
* - oboAssertion - The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
7
|
-
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
8
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
3
|
+
* CommonOnBehalfOfRequest
|
|
9
4
|
*/
|
|
10
|
-
export type CommonOnBehalfOfRequest = BaseAuthRequest & {
|
|
5
|
+
export type CommonOnBehalfOfRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
|
|
6
|
+
/**
|
|
7
|
+
* The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
8
|
+
*/
|
|
11
9
|
oboAssertion: string;
|
|
10
|
+
/**
|
|
11
|
+
* Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
12
|
+
*/
|
|
12
13
|
skipCache?: boolean;
|
|
13
14
|
};
|
|
14
15
|
//# sourceMappingURL=CommonOnBehalfOfRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D
|
|
1
|
+
{"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -2,17 +2,15 @@ import { BaseAuthRequest } from "@azure/msal-common/node";
|
|
|
2
2
|
/**
|
|
3
3
|
* CommonUsernamePassword parameters passed by the user to retrieve credentials
|
|
4
4
|
* Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
|
|
5
|
-
*
|
|
6
|
-
* - scopes - Array of scopes the application is requesting access to.
|
|
7
|
-
* - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
|
|
8
|
-
* - authority - Url of the authority which the application acquires tokens from.
|
|
9
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
10
|
-
* - username - username of the client
|
|
11
|
-
* - password - credentials
|
|
12
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
13
5
|
*/
|
|
14
6
|
export type CommonUsernamePasswordRequest = BaseAuthRequest & {
|
|
7
|
+
/**
|
|
8
|
+
* Username of the client
|
|
9
|
+
*/
|
|
15
10
|
username: string;
|
|
11
|
+
/**
|
|
12
|
+
* Credentials
|
|
13
|
+
*/
|
|
16
14
|
password: string;
|
|
17
15
|
};
|
|
18
16
|
//# sourceMappingURL=CommonUsernamePasswordRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D
|
|
1
|
+
{"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -2,16 +2,16 @@ import { DeviceCodeResponse } from "@azure/msal-common/node";
|
|
|
2
2
|
import { CommonDeviceCodeRequest } from "./CommonDeviceCodeRequest.js";
|
|
3
3
|
/**
|
|
4
4
|
* Parameters for Oauth2 device code flow.
|
|
5
|
-
* - scopes - Array of scopes the application is requesting access to.
|
|
6
|
-
* - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
|
|
7
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
8
|
-
* - deviceCodeCallback - Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
|
|
9
|
-
* - cancel - Boolean to cancel polling of device code endpoint. While the user authenticates on a separate device, MSAL polls the the token endpoint of security token service for the interval specified in the device code response (usually 15 minutes). To stop polling and cancel the request, set cancel=true.
|
|
10
|
-
* - extraQueryParameters - String to string map of custom query parameters added to the query string
|
|
11
5
|
* @public
|
|
12
6
|
*/
|
|
13
7
|
export type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
8
|
+
/**
|
|
9
|
+
* Array of scopes the application is requesting access to.
|
|
10
|
+
*/
|
|
14
11
|
scopes: Array<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
|
|
14
|
+
*/
|
|
15
15
|
deviceCodeCallback: (response: DeviceCodeResponse) => void;
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=DeviceCodeRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE
|
|
1
|
+
{"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,QAAQ,GACR,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
|
|
@@ -4,21 +4,32 @@ import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
|
4
4
|
import { ILoopbackClient } from "../network/ILoopbackClient.js";
|
|
5
5
|
/**
|
|
6
6
|
* Request object passed by user to configure acquireTokenInteractive API
|
|
7
|
-
*
|
|
8
|
-
* - openBrowser - Function to open a browser instance on user's system.
|
|
9
|
-
* - scopes - Array of scopes the application is requesting access to.
|
|
10
|
-
* - successTemplate: - Template to be displayed on the opened browser instance upon successful token acquisition.
|
|
11
|
-
* - errorTemplate - Template to be displayed on the opened browser instance upon token acquisition failure.
|
|
12
|
-
* - windowHandle - Used in native broker flows to properly parent the native broker window
|
|
13
|
-
* - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
|
|
14
7
|
* @public
|
|
15
8
|
*/
|
|
16
|
-
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "
|
|
9
|
+
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "storeInCache">> & {
|
|
10
|
+
/**
|
|
11
|
+
* Function to open a browser instance on user's system.
|
|
12
|
+
*/
|
|
17
13
|
openBrowser: (url: string) => Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Array of scopes the application is requesting access to.
|
|
16
|
+
*/
|
|
18
17
|
scopes?: Array<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Template to be displayed on the opened browser instance upon successful token acquisition.
|
|
20
|
+
*/
|
|
19
21
|
successTemplate?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Template to be displayed on the opened browser instance upon token acquisition failure.
|
|
24
|
+
*/
|
|
20
25
|
errorTemplate?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Used in native broker flows to properly parent the native broker window
|
|
28
|
+
*/
|
|
21
29
|
windowHandle?: Buffer;
|
|
30
|
+
/**
|
|
31
|
+
* Custom implementation for a loopback server to listen for authorization code response.
|
|
32
|
+
*/
|
|
22
33
|
loopbackClient?: ILoopbackClient;
|
|
23
34
|
};
|
|
24
35
|
//# sourceMappingURL=InteractiveRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE
|
|
1
|
+
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAG,cAAc,CAAC,CACjE,GAAG;IACA;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC"}
|
|
@@ -2,11 +2,15 @@ import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.j
|
|
|
2
2
|
import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams.js";
|
|
3
3
|
/**
|
|
4
4
|
* ManagedIdentityRequest
|
|
5
|
-
* - clientCapabilities - an array of capabilities to be added to all network requests as part of the `xms_cc` claim
|
|
6
|
-
* - revokedTokenSha256Hash - a SHA256 hash of the token that was revoked. The managed identity will revoke the token based on the SHA256 hash of the token, not the token itself. This is to prevent the token from being leaked in transit.
|
|
7
5
|
*/
|
|
8
6
|
export type ManagedIdentityRequest = ManagedIdentityRequestParams & CommonClientCredentialRequest & {
|
|
7
|
+
/**
|
|
8
|
+
* An array of capabilities to be added to all network requests as part of the `xms_cc` claim
|
|
9
|
+
*/
|
|
9
10
|
clientCapabilities?: Array<string>;
|
|
11
|
+
/**
|
|
12
|
+
* A SHA256 hash of the token that was revoked. The managed identity will revoke the token based on the SHA256 hash of the token, not the token itself. This is to prevent the token from being leaked in transit.
|
|
13
|
+
*/
|
|
10
14
|
revokedTokenSha256Hash?: string;
|
|
11
15
|
};
|
|
12
16
|
//# sourceMappingURL=ManagedIdentityRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF
|
|
1
|
+
{"version":3,"file":"ManagedIdentityRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAC7D,6BAA6B,GAAG;IAC5B;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ManagedIdentityRequest
|
|
3
|
-
* - claims - a stringified claims request which will be used to determine whether or not the cache should be skipped
|
|
4
|
-
* - forceRefresh - forces managed identity requests to skip the cache and make network calls if true
|
|
5
|
-
* - resource - resource requested to access the protected API. It should be of the form "ResourceIdUri" or "ResourceIdUri/.default". For instance https://management.azure.net or, for Microsoft Graph, https://graph.microsoft.com/.default
|
|
6
3
|
* @public
|
|
7
4
|
*/
|
|
8
5
|
export type ManagedIdentityRequestParams = {
|
|
6
|
+
/**
|
|
7
|
+
* A stringified claims request which will be used to determine whether or not the cache should be skipped
|
|
8
|
+
*/
|
|
9
9
|
claims?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Forces managed identity requests to skip the cache and make network calls if true
|
|
12
|
+
*/
|
|
10
13
|
forceRefresh?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Resource requested to access the protected API. It should be of the form "ResourceIdUri" or "ResourceIdUri/.default". For instance https://management.azure.net or, for Microsoft Graph, https://graph.microsoft.com/.default
|
|
16
|
+
*/
|
|
11
17
|
resource: string;
|
|
12
18
|
};
|
|
13
19
|
//# sourceMappingURL=ManagedIdentityRequestParams.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityRequestParams.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequestParams.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"ManagedIdentityRequestParams.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequestParams.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { CommonOnBehalfOfRequest } from "./CommonOnBehalfOfRequest.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
|
|
5
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
6
|
-
* - oboAssertion - The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
7
|
-
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
8
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
3
|
+
* OnBehalfOfRequest
|
|
9
4
|
* @public
|
|
10
5
|
*/
|
|
11
6
|
export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
7
|
+
/**
|
|
8
|
+
* The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
9
|
+
*/
|
|
12
10
|
oboAssertion: string;
|
|
11
|
+
/**
|
|
12
|
+
* Array of scopes the application is requesting access to.
|
|
13
|
+
*/
|
|
13
14
|
scopes: Array<string>;
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=OnBehalfOfRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE
|
|
1
|
+
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,cAAc,GACd,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { CommonRefreshTokenRequest } from "@azure/msal-common/node";
|
|
2
2
|
/**
|
|
3
3
|
* CommonRefreshTokenRequest
|
|
4
|
-
* - scopes - Array of scopes the application is requesting access to.
|
|
5
|
-
* - claims - A stringified claims request which will be added to all /authorize and /token calls
|
|
6
|
-
* - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
|
|
7
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
8
|
-
* - refreshToken - A refresh token returned from a previous request to the Identity provider.
|
|
9
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
10
|
-
* - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
|
|
11
4
|
* @public
|
|
12
5
|
*/
|
|
13
6
|
export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
7
|
+
/**
|
|
8
|
+
* Array of scopes the application is requesting access to.
|
|
9
|
+
*/
|
|
14
10
|
scopes: Array<string>;
|
|
11
|
+
/**
|
|
12
|
+
* A refresh token returned from a previous request to the Identity provider.
|
|
13
|
+
*/
|
|
15
14
|
refreshToken: string;
|
|
15
|
+
/**
|
|
16
|
+
* Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
|
|
17
|
+
*/
|
|
16
18
|
forceCache?: boolean;
|
|
17
19
|
};
|
|
18
20
|
//# sourceMappingURL=RefreshTokenRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE
|
|
1
|
+
{"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACrC,IAAI,CACA,yBAAyB,EACvB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
|
|
2
2
|
/**
|
|
3
3
|
* SilentFlow parameters passed by the user to retrieve credentials silently
|
|
4
|
-
* - scopes - Array of scopes the application is requesting access to.
|
|
5
|
-
* - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
|
|
6
|
-
* - authority - Url of the authority which the application acquires tokens from.
|
|
7
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
8
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
9
|
-
* - account - Account entity to lookup the credentials.
|
|
10
|
-
* - forceRefresh - Forces silent requests to make network calls if true.
|
|
11
4
|
* @public
|
|
12
5
|
*/
|
|
13
6
|
export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "storeInCache">> & {
|
|
7
|
+
/**
|
|
8
|
+
* Account entity to lookup the credentials.
|
|
9
|
+
*/
|
|
14
10
|
account: AccountInfo;
|
|
11
|
+
/**
|
|
12
|
+
* Array of scopes the application is requesting access to.
|
|
13
|
+
*/
|
|
15
14
|
scopes: Array<string>;
|
|
16
15
|
};
|
|
17
16
|
//# sourceMappingURL=SilentFlowRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAE/E
|
|
1
|
+
{"version":3,"file":"SilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC,CACvE,GAAG;IACA;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
|
|
@@ -2,19 +2,20 @@ import { CommonUsernamePasswordRequest } from "./CommonUsernamePasswordRequest.j
|
|
|
2
2
|
/**
|
|
3
3
|
* UsernamePassword parameters passed by the user to retrieve credentials
|
|
4
4
|
* Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
|
|
5
|
-
*
|
|
6
|
-
* - scopes - Array of scopes the application is requesting access to.
|
|
7
|
-
* - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
|
|
8
|
-
* - authority - Url of the authority which the application acquires tokens from.
|
|
9
|
-
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
10
|
-
* - username - username of the client
|
|
11
|
-
* - password - credentials
|
|
12
|
-
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
13
5
|
* @public
|
|
14
6
|
*/
|
|
15
7
|
export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "storeInCache">> & {
|
|
8
|
+
/**
|
|
9
|
+
* Array of scopes the application is requesting access to.
|
|
10
|
+
*/
|
|
16
11
|
scopes: Array<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Username of the client
|
|
14
|
+
*/
|
|
17
15
|
username: string;
|
|
16
|
+
/**
|
|
17
|
+
* Credentials
|
|
18
|
+
*/
|
|
18
19
|
password: string;
|
|
19
20
|
};
|
|
20
21
|
//# sourceMappingURL=UsernamePasswordRequest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF
|
|
1
|
+
{"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,UAAU,GACV,UAAU,GACV,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -69,17 +69,10 @@ export type ManagedIdentityIdType = (typeof ManagedIdentityIdType)[keyof typeof
|
|
|
69
69
|
* http methods
|
|
70
70
|
*/
|
|
71
71
|
export declare const HttpMethod: {
|
|
72
|
-
readonly GET: "
|
|
73
|
-
readonly POST: "
|
|
72
|
+
readonly GET: "GET";
|
|
73
|
+
readonly POST: "POST";
|
|
74
74
|
};
|
|
75
75
|
export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
|
|
76
|
-
export declare const ProxyStatus: {
|
|
77
|
-
readonly SUCCESS: number;
|
|
78
|
-
readonly SUCCESS_RANGE_START: number;
|
|
79
|
-
readonly SUCCESS_RANGE_END: number;
|
|
80
|
-
readonly SERVER_ERROR: number;
|
|
81
|
-
};
|
|
82
|
-
export type ProxyStatus = (typeof ProxyStatus)[keyof typeof ProxyStatus];
|
|
83
76
|
/**
|
|
84
77
|
* Constants used for region discovery
|
|
85
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,eAAO,MAAM,2BAA2B,qCAAqC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,sCAAsC,QAA0E,CAAC;AAE9H;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GACtC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,OAAO,8BAA8B,CAAC,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;;;;CAS1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAC/C,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AAE3G;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;CAQ7B,CAAC;AACX;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAClC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC7B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AACzD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO;;CAGnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAOrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;;;;;;;CAOjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAa,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,iCAAiC,GAAG,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
+
"name": "@azure/msal-node",
|
|
4
|
+
"version": "5.0.1",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Microsoft",
|
|
7
|
+
"email": "nugetaad@microsoft.com",
|
|
8
|
+
"url": "https://www.microsoft.com"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
14
|
+
},
|
|
15
|
+
"description": "Microsoft Authentication Library for Node",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"js",
|
|
18
|
+
"ts",
|
|
19
|
+
"node",
|
|
20
|
+
"AAD",
|
|
21
|
+
"msal",
|
|
22
|
+
"oauth"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"main": "lib/msal-node.cjs",
|
|
26
|
+
"module": "dist/index.mjs",
|
|
27
|
+
"types": "dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./lib/types/index.d.ts",
|
|
36
|
+
"default": "./lib/msal-node.cjs"
|
|
37
|
+
}
|
|
9
38
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"disallowedChangeTypes": []
|
|
63
|
-
},
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"@microsoft/api-extractor": "^7.43.4",
|
|
66
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
67
|
-
"@rollup/plugin-typescript": "^11.0.0",
|
|
68
|
-
"@types/jest": "^29.5.0",
|
|
69
|
-
"@types/jsonwebtoken": "^9.0.1",
|
|
70
|
-
"@types/node": "^20.3.1",
|
|
71
|
-
"@types/uuid": "^7.0.0",
|
|
72
|
-
"eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
|
|
73
|
-
"jest": "^29.5.0",
|
|
74
|
-
"jest-junit": "^16.0.0",
|
|
75
|
-
"prettier": "2.8.7",
|
|
76
|
-
"rollup": "^4.22.4",
|
|
77
|
-
"rollup-msal": "file:../../shared-configs/rollup-msal",
|
|
78
|
-
"ts-jest": "^29.1.0",
|
|
79
|
-
"tslib": "^1.10.0",
|
|
80
|
-
"typescript": "^4.9.5",
|
|
81
|
-
"yargs": "^17.3.1"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"@azure/msal-common": "16.0.0-alpha.0",
|
|
85
|
-
"jsonwebtoken": "^9.0.0",
|
|
86
|
-
"uuid": "^8.3.0"
|
|
87
|
-
},
|
|
88
|
-
"engines": {
|
|
89
|
-
"node": ">=20"
|
|
90
|
-
}
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"lib",
|
|
44
|
+
"src"
|
|
45
|
+
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs",
|
|
48
|
+
"build:watch": "rollup -c --watch --strictDeprecations --bundleConfigAsCjs",
|
|
49
|
+
"clean": "shx rm -rf dist lib",
|
|
50
|
+
"test": "jest",
|
|
51
|
+
"test:watch": "jest --watch",
|
|
52
|
+
"test:coverage": "jest --coverage",
|
|
53
|
+
"lint": "eslint src --ext .ts",
|
|
54
|
+
"lint:fix": "npm run lint -- --fix",
|
|
55
|
+
"build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-node",
|
|
56
|
+
"prepack": "npm run build:all",
|
|
57
|
+
"format:check": "prettier --ignore-path .gitignore --check src test",
|
|
58
|
+
"format:fix": "prettier --ignore-path .gitignore --write src test",
|
|
59
|
+
"apiExtractor": "api-extractor run"
|
|
60
|
+
},
|
|
61
|
+
"beachball": {
|
|
62
|
+
"disallowedChangeTypes": []
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@microsoft/api-extractor": "^7.43.4",
|
|
66
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
67
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
68
|
+
"@types/jest": "^29.5.0",
|
|
69
|
+
"@types/jsonwebtoken": "^9.0.1",
|
|
70
|
+
"@types/node": "^20.3.1",
|
|
71
|
+
"@types/uuid": "^7.0.0",
|
|
72
|
+
"eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
|
|
73
|
+
"jest": "^29.5.0",
|
|
74
|
+
"jest-junit": "^16.0.0",
|
|
75
|
+
"prettier": "2.8.7",
|
|
76
|
+
"rollup": "^4.22.4",
|
|
77
|
+
"rollup-msal": "file:../../shared-configs/rollup-msal",
|
|
78
|
+
"ts-jest": "^29.1.0",
|
|
79
|
+
"tslib": "^1.10.0",
|
|
80
|
+
"typescript": "^4.9.5",
|
|
81
|
+
"yargs": "^17.3.1"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@azure/msal-common": "16.0.1",
|
|
85
|
+
"jsonwebtoken": "^9.0.0",
|
|
86
|
+
"uuid": "^8.3.0"
|
|
87
|
+
},
|
|
88
|
+
"engines": {
|
|
89
|
+
"node": ">=20"
|
|
90
|
+
}
|
|
91
91
|
}
|