@azure/msal-node 5.0.0-beta.0 → 5.0.2

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
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-node";
2
- export declare const version = "5.0.0-beta.0";
2
+ export declare const version = "5.0.2";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,UAAU,CAAC"}
@@ -1,23 +1,24 @@
1
1
  import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
2
2
  /**
3
3
  * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
4
- *
5
- * - scopes - Array of scopes the application is requesting access to.
6
- * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
- * - 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.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - redirectUri - The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
10
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
11
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
12
- * - code - The authorization_code that the user acquired in the first leg of the flow.
13
- * - codeVerifier - The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636
14
- * - state - Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
15
4
  * @public
16
5
  */
17
6
  export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
7
+ /**
8
+ * Array of scopes the application is requesting access to.
9
+ */
18
10
  scopes: Array<string>;
11
+ /**
12
+ * The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
13
+ */
19
14
  redirectUri: string;
15
+ /**
16
+ * The authorization_code that the user acquired in the first leg of the flow.
17
+ */
20
18
  code: string;
19
+ /**
20
+ * Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
21
+ */
21
22
  state?: string;
22
23
  };
23
24
  //# sourceMappingURL=AuthorizationCodeRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,34 +1,16 @@
1
1
  import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
2
2
  /**
3
3
  * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
4
- *
5
- * - scopes - Array of scopes the application is requesting access to.
6
- * - claims - A stringified claims request which will be added to all /authorize and /token calls
7
- * - authority - Url of the authority which the application acquires tokens from.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
10
- * - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
11
- * - responseMode - Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query.
12
- * - codeChallenge - Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE). For more information, see the PKCE RCF:https://tools.ietf.org/html/rfc7636
13
- * - codeChallengeMethod - The method used to encode the code verifier for the code challenge parameter. Can be "plain" or "S256". If excluded, code challenge is assumed to be plaintext. For more information, see the PKCE RCF: https://tools.ietf.org/html/rfc7636
14
- * - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
15
- * - prompt - Indicates the type of user interaction that is required.
16
- * login: will force the user to enter their credentials on that request, negating single-sign on
17
- * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
18
- * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
19
- * select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
20
- * create: will direct the user to the account creation experience instead of the log in experience
21
- * - account - AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided.
22
- * - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.
23
- * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
24
- * - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
25
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
26
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
27
- * - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
28
4
  * @public
29
5
  */
30
6
  export type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "storeInCache">> & {
7
+ /**
8
+ * Array of scopes the application is requesting access to.
9
+ */
31
10
  scopes: Array<string>;
11
+ /**
12
+ * The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
13
+ */
32
14
  redirectUri: string;
33
15
  };
34
16
  //# sourceMappingURL=AuthorizationUrlRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,CACnB,CACJ,GAAG;IACA,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -2,14 +2,12 @@ import { ClientAssertionCallback } from "@azure/msal-common/node";
2
2
  import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
3
3
  /**
4
4
  * ClientCredentialRequest
5
- * - 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
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
- * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
9
- * - clientAssertion - An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
10
5
  * @public
11
6
  */
12
7
  export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "resourceRequestMethod" | "resourceRequestUri" | "clientAssertion" | "storeInCache">> & {
8
+ /**
9
+ * An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
10
+ */
13
11
  clientAssertion?: string | ClientAssertionCallback;
14
12
  };
15
13
  //# sourceMappingURL=ClientCredentialRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;;;;;;GAQG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,uBAAuB,GACvB,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,CACnB,CACJ,GAAG;IACA,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACtD,CAAC"}
1
+ {"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,uBAAuB,GACvB,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACtD,CAAC"}
@@ -1,17 +1,19 @@
1
1
  import { BaseAuthRequest, AzureRegion, ClientAssertion } from "@azure/msal-common/node";
2
2
  /**
3
3
  * CommonClientCredentialRequest
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.
6
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
7
- * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
- * - preferredAzureRegionOptions - Options of the user's preferred azure region
9
- * - clientAssertion - An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
10
- * - azureRegion - Azure region to be used for regional authentication
11
4
  */
12
5
  export type CommonClientCredentialRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
6
+ /**
7
+ * Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
+ */
13
9
  skipCache?: boolean;
10
+ /**
11
+ * Azure region to be used for regional authentication.
12
+ */
14
13
  azureRegion?: AzureRegion;
14
+ /**
15
+ * An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow.
16
+ */
15
17
  clientAssertion?: ClientAssertion;
16
18
  };
17
19
  //# sourceMappingURL=CommonClientCredentialRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
@@ -1,21 +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 outgoing token service requests
13
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
14
4
  */
15
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
+ */
16
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
+ */
17
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
+ */
18
17
  timeout?: number;
18
+ /**
19
+ * String to string map of custom query parameters added to outgoing token service requests.
20
+ */
19
21
  extraQueryParameters?: StringDict;
20
22
  };
21
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;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
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,13 +1,15 @@
1
1
  import { BaseAuthRequest } from "@azure/msal-common/node";
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
+ * CommonOnBehalfOfRequest
8
4
  */
9
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
+ */
10
9
  oboAssertion: string;
10
+ /**
11
+ * Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
12
+ */
11
13
  skipCache?: boolean;
12
14
  };
13
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;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
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,18 +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
- * - 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
  */
15
6
  export type CommonUsernamePasswordRequest = BaseAuthRequest & {
7
+ /**
8
+ * Username of the client
9
+ */
16
10
  username: string;
11
+ /**
12
+ * Credentials
13
+ */
17
14
  password: string;
18
15
  };
19
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;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
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;;;;;;;;;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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@azure/msal-node",
4
- "version": "5.0.0-beta.0",
4
+ "version": "5.0.2",
5
5
  "author": {
6
6
  "name": "Microsoft",
7
7
  "email": "nugetaad@microsoft.com",
@@ -81,7 +81,7 @@
81
81
  "yargs": "^17.3.1"
82
82
  },
83
83
  "dependencies": {
84
- "@azure/msal-common": "16.0.0-beta.0",
84
+ "@azure/msal-common": "16.0.2",
85
85
  "jsonwebtoken": "^9.0.0",
86
86
  "uuid": "^8.3.0"
87
87
  },
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-node";
3
- export const version = "5.0.0-beta.0";
3
+ export const version = "5.0.2";
@@ -7,17 +7,6 @@ import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
7
7
 
8
8
  /**
9
9
  * Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
10
- *
11
- * - scopes - Array of scopes the application is requesting access to.
12
- * - claims - A stringified claims request which will be added to all /authorize and /token calls
13
- * - 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.
14
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
15
- * - redirectUri - The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
16
- * - extraQueryParameters - String to string map of custom query parameters added to outgoing token service requests
17
- * - extraParameters - String to string map of custom query parameters added to outgoing token service requests
18
- * - code - The authorization_code that the user acquired in the first leg of the flow.
19
- * - codeVerifier - The same code_verifier that was used to obtain the authorization_code. Required if PKCE was used in the authorization code grant request.For more information, see the PKCE RFC: https://tools.ietf.org/html/rfc7636
20
- * - state - Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
21
10
  * @public
22
11
  */
23
12
  export type AuthorizationCodeRequest = Partial<
@@ -32,8 +21,20 @@ export type AuthorizationCodeRequest = Partial<
32
21
  | "storeInCache"
33
22
  >
34
23
  > & {
24
+ /**
25
+ * Array of scopes the application is requesting access to.
26
+ */
35
27
  scopes: Array<string>;
28
+ /**
29
+ * The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
30
+ */
36
31
  redirectUri: string;
32
+ /**
33
+ * The authorization_code that the user acquired in the first leg of the flow.
34
+ */
37
35
  code: string;
36
+ /**
37
+ * Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
38
+ */
38
39
  state?: string;
39
40
  };