@azure/msal-node 1.14.5 → 1.15.0
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/client/ClientApplication.d.ts.map +1 -1
- package/dist/config/Configuration.d.ts +4 -0
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/msal-node.cjs.development.js +156 -515
- package/dist/msal-node.cjs.development.js.map +1 -1
- package/dist/msal-node.cjs.production.min.js +1 -1
- package/dist/msal-node.cjs.production.min.js.map +1 -1
- package/dist/msal-node.esm.js +156 -515
- package/dist/msal-node.esm.js.map +1 -1
- package/dist/network/HttpClient.d.ts +6 -0
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/ClientCredentialRequest.d.ts +1 -0
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/DeviceCodeRequest.d.ts +1 -0
- package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +1 -0
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/SilentFlowRequest.d.ts +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts +1 -0
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common";
|
|
3
|
+
import http from "http";
|
|
4
|
+
import https from "https";
|
|
2
5
|
/**
|
|
3
6
|
* This class implements the API for network requests.
|
|
4
7
|
*/
|
|
5
8
|
export declare class HttpClient implements INetworkModule {
|
|
9
|
+
private proxyUrl;
|
|
10
|
+
private customAgentOptions;
|
|
11
|
+
constructor(proxyUrl?: string, customAgentOptions?: http.AgentOptions | https.AgentOptions);
|
|
6
12
|
/**
|
|
7
13
|
* Http Get request
|
|
8
14
|
* @param url
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../src/network/HttpClient.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../src/network/HttpClient.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG5F,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC7C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,kBAAkB,CAAyC;gBAG/D,QAAQ,CAAC,EAAE,MAAM,EACjB,kBAAkB,CAAC,EAAE,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY;IAM/D;;;;OAIG;IACG,mBAAmB,CAAC,CAAC,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAQ9B;;;;OAIG;IACG,oBAAoB,CAAC,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,iBAAiB,CAAC,EAAE,MAAM,GAC3B,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAOjC"}
|
|
@@ -7,7 +7,7 @@ import { CommonAuthorizationCodeRequest } from "@azure/msal-common";
|
|
|
7
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
8
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
9
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
|
-
* - tokenQueryParameters
|
|
10
|
+
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
11
11
|
* - code - The authorization_code that the user acquired in the first leg of the flow.
|
|
12
12
|
* - 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
|
|
13
13
|
* - 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.
|
|
@@ -6,6 +6,7 @@ import { CommonClientCredentialRequest } from "@azure/msal-common";
|
|
|
6
6
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
7
7
|
* - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
8
8
|
* - clientAssertion - A Base64Url-encoded signed JWT assertion string used in the Client Credential flow
|
|
9
|
+
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
9
10
|
* @public
|
|
10
11
|
*/
|
|
11
12
|
export declare type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "clientAssertion">> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE
|
|
1
|
+
{"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;GASG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,GAAC,iBAAiB,CAAC,CAAC,GAAG;IAChL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { CommonDeviceCodeRequest, DeviceCodeResponse } from "@azure/msal-common"
|
|
|
6
6
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
7
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
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
|
+
* - extraQueryParameters - String to string map of custom query parameters added to the query string
|
|
9
10
|
* @public
|
|
10
11
|
*/
|
|
11
12
|
export declare type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAG,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAElF
|
|
1
|
+
{"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAG,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAElF;;;;;;;;;GASG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAC,oBAAoB,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACvK,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { CommonOnBehalfOfRequest } from "@azure/msal-common";
|
|
|
5
5
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
6
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
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
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
export declare type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash">> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D
|
|
1
|
+
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;;;;GAQG;AACH,oBAAY,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,cAAc,GAAC,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACjK,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common";
|
|
|
5
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
6
|
* - authority - Url of the authority which the application acquires tokens from.
|
|
7
7
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
8
|
-
* - tokenQueryParameters
|
|
8
|
+
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
9
9
|
* - account - Account entity to lookup the credentials.
|
|
10
10
|
* - forceRefresh - Forces silent requests to make network calls if true.
|
|
11
11
|
* @public
|
|
@@ -9,6 +9,7 @@ import { CommonUsernamePasswordRequest } from "@azure/msal-common";
|
|
|
9
9
|
* - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
|
|
10
10
|
* - username - username of the client
|
|
11
11
|
* - password - credentials
|
|
12
|
+
* - tokenQueryParameters - String to string map of custom query parameters added to the /token call
|
|
12
13
|
* @public
|
|
13
14
|
*/
|
|
14
15
|
export declare type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "requestedClaimsHash">> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE
|
|
1
|
+
{"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,oBAAY,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAC,uBAAuB,GAAC,oBAAoB,GAAC,UAAU,GAAC,UAAU,GAAC,qBAAqB,CAAC,CAAC,GAAG;IACpL,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAA;CACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/msal-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Microsoft",
|
|
6
6
|
"email": "nugetaad@microsoft.com",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"yargs": "^17.3.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@azure/msal-common": "^
|
|
62
|
-
"jsonwebtoken": "^
|
|
61
|
+
"@azure/msal-common": "^10.0.0",
|
|
62
|
+
"jsonwebtoken": "^9.0.0",
|
|
63
63
|
"uuid": "^8.3.0"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|