@azure/msal-node 5.0.0-beta.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.
Files changed (132) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +1 -1
  3. package/dist/cache/TokenCache.mjs +1 -1
  4. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  5. package/dist/cache/serializer/Deserializer.mjs +1 -1
  6. package/dist/cache/serializer/Serializer.mjs +1 -1
  7. package/dist/client/BaseClient.mjs +1 -1
  8. package/dist/client/ClientApplication.mjs +1 -1
  9. package/dist/client/ClientAssertion.mjs +1 -1
  10. package/dist/client/ClientCredentialClient.mjs +1 -1
  11. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  12. package/dist/client/DeviceCodeClient.mjs +1 -1
  13. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  14. package/dist/client/ManagedIdentityClient.mjs +1 -1
  15. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  19. package/dist/client/ManagedIdentitySources/Imds.mjs +1 -1
  20. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  22. package/dist/client/OnBehalfOfClient.mjs +1 -1
  23. package/dist/client/PublicClientApplication.mjs +1 -1
  24. package/dist/client/UsernamePasswordClient.mjs +1 -1
  25. package/dist/config/Configuration.mjs +1 -1
  26. package/dist/config/ManagedIdentityId.mjs +1 -1
  27. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  28. package/dist/crypto/CryptoProvider.mjs +1 -1
  29. package/dist/crypto/GuidGenerator.mjs +1 -1
  30. package/dist/crypto/HashUtils.mjs +1 -1
  31. package/dist/crypto/PkceGenerator.mjs +1 -1
  32. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  33. package/dist/error/ManagedIdentityError.mjs +1 -1
  34. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  35. package/dist/error/NodeAuthError.mjs +1 -1
  36. package/dist/index.mjs +1 -1
  37. package/dist/internals.mjs +1 -1
  38. package/dist/network/HttpClient.mjs +1 -1
  39. package/dist/network/HttpClientWithRetries.mjs +1 -1
  40. package/dist/network/LoopbackClient.mjs +1 -1
  41. package/dist/packageMetadata.d.ts +1 -1
  42. package/dist/packageMetadata.d.ts.map +1 -1
  43. package/dist/packageMetadata.mjs +2 -2
  44. package/dist/protocol/Authorize.mjs +1 -1
  45. package/dist/request/AuthorizationCodeRequest.d.ts +12 -11
  46. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
  47. package/dist/request/AuthorizationUrlRequest.d.ts +6 -24
  48. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  49. package/dist/request/ClientCredentialRequest.d.ts +3 -5
  50. package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
  51. package/dist/request/CommonClientCredentialRequest.d.ts +9 -7
  52. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  53. package/dist/request/CommonDeviceCodeRequest.d.ts +12 -10
  54. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  55. package/dist/request/CommonOnBehalfOfRequest.d.ts +7 -5
  56. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  57. package/dist/request/CommonUsernamePasswordRequest.d.ts +6 -9
  58. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  59. package/dist/request/DeviceCodeRequest.d.ts +6 -6
  60. package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
  61. package/dist/request/InteractiveRequest.d.ts +18 -7
  62. package/dist/request/InteractiveRequest.d.ts.map +1 -1
  63. package/dist/request/ManagedIdentityRequest.d.ts +6 -2
  64. package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
  65. package/dist/request/ManagedIdentityRequestParams.d.ts +9 -3
  66. package/dist/request/ManagedIdentityRequestParams.d.ts.map +1 -1
  67. package/dist/request/OnBehalfOfRequest.d.ts +7 -5
  68. package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
  69. package/dist/request/RefreshTokenRequest.d.ts +9 -8
  70. package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
  71. package/dist/request/SilentFlowRequest.d.ts +6 -8
  72. package/dist/request/SilentFlowRequest.d.ts.map +1 -1
  73. package/dist/request/UsernamePasswordRequest.d.ts +9 -9
  74. package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
  75. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  76. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  77. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  78. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  79. package/dist/utils/Constants.mjs +1 -1
  80. package/dist/utils/EncodingUtils.mjs +1 -1
  81. package/dist/utils/TimeUtils.mjs +1 -1
  82. package/lib/msal-node.cjs +73 -68
  83. package/lib/msal-node.cjs.map +1 -1
  84. package/lib/types/packageMetadata.d.ts +1 -1
  85. package/lib/types/packageMetadata.d.ts.map +1 -1
  86. package/lib/types/request/AuthorizationCodeRequest.d.ts +12 -11
  87. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
  88. package/lib/types/request/AuthorizationUrlRequest.d.ts +6 -24
  89. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -1
  90. package/lib/types/request/ClientCredentialRequest.d.ts +3 -5
  91. package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
  92. package/lib/types/request/CommonClientCredentialRequest.d.ts +9 -7
  93. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
  94. package/lib/types/request/CommonDeviceCodeRequest.d.ts +12 -10
  95. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  96. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +7 -5
  97. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  98. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +6 -9
  99. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  100. package/lib/types/request/DeviceCodeRequest.d.ts +6 -6
  101. package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -1
  102. package/lib/types/request/InteractiveRequest.d.ts +18 -7
  103. package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
  104. package/lib/types/request/ManagedIdentityRequest.d.ts +6 -2
  105. package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -1
  106. package/lib/types/request/ManagedIdentityRequestParams.d.ts +9 -3
  107. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +1 -1
  108. package/lib/types/request/OnBehalfOfRequest.d.ts +7 -5
  109. package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
  110. package/lib/types/request/RefreshTokenRequest.d.ts +9 -8
  111. package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
  112. package/lib/types/request/SilentFlowRequest.d.ts +6 -8
  113. package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
  114. package/lib/types/request/UsernamePasswordRequest.d.ts +9 -9
  115. package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
  116. package/package.json +2 -2
  117. package/src/packageMetadata.ts +1 -1
  118. package/src/request/AuthorizationCodeRequest.ts +12 -11
  119. package/src/request/AuthorizationUrlRequest.ts +6 -24
  120. package/src/request/ClientCredentialRequest.ts +3 -5
  121. package/src/request/CommonClientCredentialRequest.ts +9 -7
  122. package/src/request/CommonDeviceCodeRequest.ts +12 -10
  123. package/src/request/CommonOnBehalfOfRequest.ts +7 -5
  124. package/src/request/CommonUsernamePasswordRequest.ts +6 -9
  125. package/src/request/DeviceCodeRequest.ts +6 -6
  126. package/src/request/InteractiveRequest.ts +18 -7
  127. package/src/request/ManagedIdentityRequest.ts +6 -2
  128. package/src/request/ManagedIdentityRequestParams.ts +9 -3
  129. package/src/request/OnBehalfOfRequest.ts +7 -5
  130. package/src/request/RefreshTokenRequest.ts +9 -8
  131. package/src/request/SilentFlowRequest.ts +6 -8
  132. package/src/request/UsernamePasswordRequest.ts +9 -9
@@ -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;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,QAAQ,GACR,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
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
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;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAG,cAAc,CAAC,CACjE,GAAG;IACA,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC"}
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;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAC7D,6BAA6B,GAAG;IAC5B,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC"}
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;;;;;;GAMG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
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,14 +1,16 @@
1
1
  import { CommonOnBehalfOfRequest } from "./CommonOnBehalfOfRequest.js";
2
2
  /**
3
- * - scopes - Array of scopes the application is requesting access to.
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.
3
+ * OnBehalfOfRequest
8
4
  * @public
9
5
  */
10
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
+ */
11
10
  oboAssertion: string;
11
+ /**
12
+ * Array of scopes the application is requesting access to.
13
+ */
12
14
  scopes: Array<string>;
13
15
  };
14
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;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,cAAc,GACd,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
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,19 +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
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
10
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
11
- * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
12
4
  * @public
13
5
  */
14
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
+ */
15
10
  scopes: Array<string>;
11
+ /**
12
+ * A refresh token returned from a previous request to the Identity provider.
13
+ */
16
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
+ */
17
18
  forceCache?: boolean;
18
19
  };
19
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;;;;;;;;;;;GAWG;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,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
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,18 +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
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
9
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
10
- * - account - Account entity to lookup the credentials.
11
- * - forceRefresh - Forces silent requests to make network calls if true.
12
4
  * @public
13
5
  */
14
6
  export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "storeInCache">> & {
7
+ /**
8
+ * Account entity to lookup the credentials.
9
+ */
15
10
  account: AccountInfo;
11
+ /**
12
+ * Array of scopes the application is requesting access to.
13
+ */
16
14
  scopes: Array<string>;
17
15
  };
18
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;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC,CACvE,GAAG;IACA,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
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,20 +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
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
13
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
14
5
  * @public
15
6
  */
16
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
+ */
17
11
  scopes: Array<string>;
12
+ /**
13
+ * Username of the client
14
+ */
18
15
  username: string;
16
+ /**
17
+ * Credentials
18
+ */
19
19
  password: string;
20
20
  };
21
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;;;;;;;;;;;;;GAaG;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,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
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"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-node v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  import { Constants } from '@azure/msal-common/node';
4
4
  import { LinearRetryStrategy } from './LinearRetryStrategy.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-node v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-node v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  import { Constants } from '@azure/msal-common/node';
4
4
  import { ExponentialRetryStrategy } from './ExponentialRetryStrategy.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-node v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-node v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-node v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  import { Constants } from '@azure/msal-common/node';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
1
+ /*! @azure/msal-node v5.0.1 2026-01-16 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.