@azure/msal-node 1.15.0 → 1.17.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/cache/NodeStorage.d.ts +3 -1
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/distributed/IPartitionManager.d.ts +0 -4
- package/dist/cache/distributed/IPartitionManager.d.ts.map +1 -1
- package/dist/client/IPublicClientApplication.d.ts +6 -1
- package/dist/client/IPublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.d.ts +22 -2
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/config/Configuration.d.ts +16 -2
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/msal-node.cjs.development.js +139 -15
- 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 +139 -15
- package/dist/msal-node.esm.js.map +1 -1
- package/dist/network/ILoopbackClient.d.ts +11 -0
- package/dist/network/ILoopbackClient.d.ts.map +1 -0
- package/dist/network/LoopbackClient.d.ts +2 -1
- package/dist/network/LoopbackClient.d.ts.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/request/InteractiveRequest.d.ts +15 -0
- package/dist/request/InteractiveRequest.d.ts.map +1 -1
- package/dist/request/SignOutRequest.d.ts +6 -0
- package/dist/request/SignOutRequest.d.ts.map +1 -0
- package/dist/utils/NetworkUtils.d.ts +2 -1
- package/dist/utils/NetworkUtils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ServerAuthorizationCodeResponse } from "@azure/msal-common";
|
|
2
|
+
/**
|
|
3
|
+
* Interface for LoopbackClient allowing to replace the default loopback server with a custom implementation.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface ILoopbackClient {
|
|
7
|
+
listenForAuthCode(successTemplate?: string, errorTemplate?: string): Promise<ServerAuthorizationCodeResponse>;
|
|
8
|
+
getRedirectUri(): string;
|
|
9
|
+
closeServer(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ILoopbackClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ILoopbackClient.d.ts","sourceRoot":"","sources":["../src/network/ILoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,iBAAiB,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC9G,cAAc,IAAI,MAAM,CAAC;IACzB,WAAW,IAAI,IAAI,CAAA;CACtB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ServerAuthorizationCodeResponse } from "@azure/msal-common";
|
|
2
|
-
|
|
2
|
+
import { ILoopbackClient } from "./ILoopbackClient";
|
|
3
|
+
export declare class LoopbackClient implements ILoopbackClient {
|
|
3
4
|
private server;
|
|
4
5
|
/**
|
|
5
6
|
* Spins up a loopback server which returns the server response when the localhost redirectUri is hit
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgC,+BAA+B,EAAa,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgC,+BAA+B,EAAa,MAAM,oBAAoB,CAAC;AAI9G,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,cAAe,YAAW,eAAe;IAClD,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;;OAKG;IACG,iBAAiB,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,+BAA+B,CAAC;IA+CnH;;;OAGG;IACH,cAAc,IAAI,MAAM;IAgBxB;;OAEG;IACH,WAAW,IAAI,IAAI;CAKtB"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { ILoopbackClient } from "../network/ILoopbackClient";
|
|
1
3
|
import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest";
|
|
4
|
+
/**
|
|
5
|
+
* Request object passed by user to configure acquireTokenInteractive API
|
|
6
|
+
*
|
|
7
|
+
* - openBrowser - Function to open a browser instance on user's system.
|
|
8
|
+
* - scopes - Array of scopes the application is requesting access to.
|
|
9
|
+
* - successTemplate: - Template to be displayed on the opened browser instance upon successful token acquisition.
|
|
10
|
+
* - errorTemplate - Template to be displayed on the opened browser instance upon token acquisition failure.
|
|
11
|
+
* - windowHandle - Used in native broker flows to properly parent the native broker window
|
|
12
|
+
* - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
2
15
|
export declare type InteractiveRequest = Pick<AuthorizationUrlRequest, "authority" | "correlationId" | "claims" | "azureCloudOptions" | "account" | "extraQueryParameters" | "tokenQueryParameters" | "extraScopesToConsent" | "loginHint" | "prompt"> & {
|
|
3
16
|
openBrowser: (url: string) => Promise<void>;
|
|
4
17
|
scopes?: Array<string>;
|
|
5
18
|
successTemplate?: string;
|
|
6
19
|
errorTemplate?: string;
|
|
20
|
+
windowHandle?: Buffer;
|
|
21
|
+
loopbackClient?: ILoopbackClient;
|
|
7
22
|
};
|
|
8
23
|
//# 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,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,oBAAY,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAC,eAAe,GAAC,QAAQ,GAAC,mBAAmB,GAAC,SAAS,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,WAAW,GAAC,QAAQ,CAAC,GAAG;IAC3N,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;
|
|
1
|
+
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../src/request/InteractiveRequest.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,oBAAY,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAC,eAAe,GAAC,QAAQ,GAAC,mBAAmB,GAAC,SAAS,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,sBAAsB,GAAC,WAAW,GAAC,QAAQ,CAAC,GAAG;IAC3N,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,CAAA;CACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignOutRequest.d.ts","sourceRoot":"","sources":["../src/request/SignOutRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,oBAAY,cAAc,GAAG;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { NetworkResponse } from "@azure/msal-common";
|
|
1
|
+
import { NetworkResponse, UrlToHttpRequestOptions } from "@azure/msal-common";
|
|
2
2
|
export declare class NetworkUtils {
|
|
3
3
|
static getNetworkResponse<T>(headers: Record<string, string>, body: T, statusCode: number): NetworkResponse<T>;
|
|
4
|
+
static urlToHttpOptions(url: URL): UrlToHttpRequestOptions;
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=NetworkUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkUtils.d.ts","sourceRoot":"","sources":["../src/utils/NetworkUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"NetworkUtils.d.ts","sourceRoot":"","sources":["../src/utils/NetworkUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,qBAAa,YAAY;IACrB,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC;IAa9G,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,uBAAuB;CAoB7D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/msal-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Microsoft",
|
|
6
6
|
"email": "nugetaad@microsoft.com",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"yargs": "^17.3.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@azure/msal-common": "^
|
|
61
|
+
"@azure/msal-common": "^12.0.0",
|
|
62
62
|
"jsonwebtoken": "^9.0.0",
|
|
63
63
|
"uuid": "^8.3.0"
|
|
64
64
|
},
|