@azure/msal-node 1.15.0 → 1.16.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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Microsoft
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Microsoft
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,181 +1,181 @@
1
- # Microsoft Authentication Library for Node (msal-node)
2
-
3
- [![npm version](https://img.shields.io/npm/v/@azure/msal-node.svg?style=flat)](https://www.npmjs.com/package/@azure/msal-node/)
4
- [![npm version](https://img.shields.io/npm/dm/@azure/msal-node.svg)](https://nodei.co/npm/@azure/msal-node/)
5
- [![codecov](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js/branch/dev/graph/badge.svg?flag=msal-node)](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
6
-
7
- | <a href="https://docs.microsoft.com/azure/active-directory/develop/guidedsetups/active-directory-javascriptspa" target="_blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_node.html" target="_blank">Library Reference</a> |
8
- | --- | --- | --- |
9
-
10
- 1. [About](#about)
11
- 1. [FAQ](#faq)
12
- 1. [Changelog](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/CHANGELOG.md)
13
- 1. [Prerequisites](#prerequisites)
14
- 1. [Installation](#installation)
15
- 1. [Node Version Support](#node-version-support)
16
- 1. [Usage](#usage)
17
- 1. [Samples](#samples)
18
- 1. [Build Library](#build-and-test)
19
- 1. [Security Reporting](#security-reporting)
20
- 1. [License](#license)
21
- 1. [Code of Conduct](#we-value-and-adhere-to-the-microsoft-open-source-code-of-conduct)
22
-
23
- ## About
24
-
25
- MSAL Node enables applications to authenticate users using [Azure AD](https://docs.microsoft.com/azure/active-directory/develop/v2-overview) work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through [Azure AD B2C](https://docs.microsoft.com/azure/active-directory-b2c/active-directory-b2c-overview#identity-providers) service. It also enables your app to get tokens to access [Microsoft Cloud](https://www.microsoft.com/enterprise) services such as [Microsoft Graph](https://graph.microsoft.io).
26
-
27
- ### OAuth2.0 grant types supported:
28
-
29
- The current version supports the following ways of acquiring tokens:
30
-
31
- #### Public Client:
32
- - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with [PKCE](https://oauth.net/2/pkce/)
33
- - [Device Code Grant](https://oauth.net/2/grant-types/device-code/)
34
- - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
35
- - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
36
- - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
37
-
38
- #### Confidential Client:
39
- - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with a client credential
40
- - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
41
- - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
42
- - [Client Credential Grant](https://oauth.net/2/grant-types/client-credentials/)
43
- - [On-behalf-of flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow)
44
- - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
45
-
46
- **[Coming Soon]** In the future we plan to add support for:
47
- - [Integrated Windows Authentication flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#integrated-windows-authentication)
48
-
49
- More details on different grant types supported by Microsoft authentication libraries in general can be found [here](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows).
50
-
51
- ### Scenarios supported:
52
-
53
- The scenarios supported with this library are:
54
- - Desktop app that calls web APIs
55
- - Web app that calls web APIs
56
- - Web APIs that call web APIs
57
- - Daemon apps
58
-
59
- More details on scenarios and the authentication flows that map to each of them can be found [here](https://docs.microsoft.com/azure/active-directory/develop/authentication-flows-app-scenarios).
60
-
61
- ## FAQ
62
-
63
- See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/faq.md).
64
-
65
- ## Prerequisites
66
-
67
- Before using `@azure/msal-node` you will need to register your app in the azure portal:
68
-
69
- - [App registration](https://docs.microsoft.com/graph/auth-register-app-v2)
70
-
71
- ## Installation
72
-
73
- ### Via NPM:
74
- ```javascript
75
- npm install @azure/msal-node
76
- ```
77
- ## Node Version Support
78
- MSAL Node will follow the [Long Term Support (LTS) schedule of the Node.js project](https://nodejs.org/about/releases/). Our support plan is as follows.
79
-
80
- Any major MSAL Node release:
81
- - Will support stable (even-numbered) Maintenance LTS, Active LTS, and Current versions of Node
82
- - Will drop support for any previously supported Node versions that have reached end of life
83
- - Will not support prerelease/preview/pending versions until they are stable
84
-
85
- | MSAL Node version | MSAL support status | Supported Node versions |
86
- |-------------------|-------------------------|-------------------------|
87
- | 1.x.x | Active development | 10, 12, 14, 16, 18 |
88
-
89
-
90
- ## Usage
91
-
92
- ### MSAL basics
93
- - [Understand difference in between Public Client and Confidential Clients](https://docs.microsoft.com/azure/active-directory/develop/msal-client-applications)
94
- - [Initialize a Public Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-public-client-application.md)
95
- - [Initialize a Confidential Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-confidential-client-application.md)
96
- - [Configuration](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/configuration.md)
97
- - [Request](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/request.md)
98
- - [Response](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/Response.md)
99
-
100
- ## Samples
101
- There are multiple [samples](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples) included in the repository that use MSAL Node to acquire tokens. These samples are currently used for manual testing, and are not meant to be a reference of best practices, therefore use judgement and do not blindly copy this code to any production applications.
102
-
103
- AAD samples:
104
-
105
- - [auth-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code): Express app using OAuth2.0 authorization code flow.
106
- - [auth-code-pkce](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code-pkce): Express app using OAuth2.0 authorization code flow with PKCE.
107
- - [device-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/device-code): Command line app using OAuth 2.0 device code flow.
108
- - [refresh-token](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/refresh-token): Command line app using OAuth 2.0 refresh flow.
109
- - [silent-flow](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/silent-flow): Express app using OAuth2.0 authorization code flow to acquire a token and store in the token cache, and silent flow to use tokens in the token cache.
110
- - [client-credentials](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/client-credentials): Daemon app using OAuth 2.0 client credential grant to acquire a token.
111
- - [on-behalf-of](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/on-behalf-of): Web application using OAuth 2.0 auth code flow to acquire a token for a web API. The web API validates the token, and calls Microsoft Graph on behalf of the user who authenticated in the web application.
112
- - [username-password](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/username-password): Web application using OAuth 2.0 resource owner password credentials (ROPC) flow to acquire a token for a web API.
113
- - [ElectronTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ElectronTestApp): Electron desktop application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
114
- - [ExpressTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ExpressTestApp): Express.js MVC web application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
115
- - [Hybrid Spa Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/HybridSample): Sample demonstrating how to use `enableSpaAuthorizationCode` to perform SSO for applications that leverage server-side and client-side authentication using MSAL Browser and MSAL Node.
116
-
117
- B2C samples:
118
-
119
- - [b2c-user-flows](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/b2c-user-flows): Express app using OAuth2.0 authorization code flow.
120
- - [ms-identity-b2c-javascript-nodejs-management](https://github.com/Azure-Samples/ms-identity-b2c-javascript-nodejs-management/tree/main/Chapter2): Command line app using OAuth 2.0 client credentials flow for performing user management operations on an Azure AD / Azure AD B2C tenant
121
-
122
- Others:
123
-
124
- - [msal-node-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/samples/msal-node-extensions): Uses authorization code flow to acquire tokens and the [msal-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/) library to write the MSAL in-memory token cache to disk.
125
-
126
- ## Build and Test
127
-
128
- - If you don't have [lerna](https://github.com/lerna/lerna) installed, run `npm install -g lerna`
129
- - Run `lerna bootstrap` from anywhere within `microsoft-authentication-library-for-js.git`.
130
- - Navigate to `microsoft-authentication-library-for-js/lib/msal-common` and run `npm run build`
131
- - Navigate to `microsoft-authentication-library-for-js/lib/msal-node` and run `npm run build`
132
-
133
- ```javascript
134
- // to link msal-node and msal-common packages
135
- lerna bootstrap
136
-
137
- // Change to the msal-node package directory
138
- cd lib/msal-common/
139
-
140
- // To run build only for node package
141
- npm run build
142
-
143
- // Change to the msal-node package directory
144
- cd lib/msal-node/
145
-
146
- // To run build only for node package
147
- npm run build
148
- ```
149
-
150
- ### Local Development
151
- Below is a list of commands you will probably find useful:
152
-
153
- #### `npm run build:modules:watch`
154
- Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab. The library will be rebuilt if you make edits.
155
-
156
- #### `npm run build`
157
- Bundles the package to the `dist` folder.
158
- The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
159
-
160
- #### `lerna bootstrap`
161
- If you are running the project in development/watch mode, or have made changes in `msal-common` and need them reflecting across the project, please run `lerna bootstrap` to link all the symbols. Please note that `npm install` will unlink all the code, hence it is advised to run `lerna bootstrap` post installation.
162
-
163
- #### `npm run lint`
164
- Runs eslint with Prettier
165
-
166
- #### `npm test`, `npm run test:coverage`, `npm run test:watch`
167
- Runs the test watcher (Jest) in an interactive mode.
168
- By default, runs tests related to files changed since the last commit.
169
- Generate code coverage by adding the flag --coverage. No additional setup needed. Jest can collect code coverage information from entire projects, including untested files.
170
-
171
- ## Security Reporting
172
-
173
- If you find a security issue with our libraries or services please report it to [secure@microsoft.com](mailto:secure@microsoft.com) with as much detail as possible. Your submission may be eligible for a bounty through the [Microsoft Bounty](http://aka.ms/bugbounty) program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting [this page](https://technet.microsoft.com/security/dd252948) and subscribing to Security Advisory Alerts.
174
-
175
- ## License
176
-
177
- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
178
-
179
- ## We Value and Adhere to the Microsoft Open Source Code of Conduct
180
-
181
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
1
+ # Microsoft Authentication Library for Node (msal-node)
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@azure/msal-node.svg?style=flat)](https://www.npmjs.com/package/@azure/msal-node/)
4
+ [![npm version](https://img.shields.io/npm/dm/@azure/msal-node.svg)](https://nodei.co/npm/@azure/msal-node/)
5
+ [![codecov](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js/branch/dev/graph/badge.svg?flag=msal-node)](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
6
+
7
+ | <a href="https://docs.microsoft.com/azure/active-directory/develop/guidedsetups/active-directory-javascriptspa" target="_blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_node.html" target="_blank">Library Reference</a> |
8
+ | --- | --- | --- |
9
+
10
+ 1. [About](#about)
11
+ 1. [FAQ](#faq)
12
+ 1. [Changelog](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/CHANGELOG.md)
13
+ 1. [Prerequisites](#prerequisites)
14
+ 1. [Installation](#installation)
15
+ 1. [Node Version Support](#node-version-support)
16
+ 1. [Usage](#usage)
17
+ 1. [Samples](#samples)
18
+ 1. [Build Library](#build-and-test)
19
+ 1. [Security Reporting](#security-reporting)
20
+ 1. [License](#license)
21
+ 1. [Code of Conduct](#we-value-and-adhere-to-the-microsoft-open-source-code-of-conduct)
22
+
23
+ ## About
24
+
25
+ MSAL Node enables applications to authenticate users using [Azure AD](https://docs.microsoft.com/azure/active-directory/develop/v2-overview) work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through [Azure AD B2C](https://docs.microsoft.com/azure/active-directory-b2c/active-directory-b2c-overview#identity-providers) service. It also enables your app to get tokens to access [Microsoft Cloud](https://www.microsoft.com/enterprise) services such as [Microsoft Graph](https://graph.microsoft.io).
26
+
27
+ ### OAuth2.0 grant types supported:
28
+
29
+ The current version supports the following ways of acquiring tokens:
30
+
31
+ #### Public Client:
32
+ - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with [PKCE](https://oauth.net/2/pkce/)
33
+ - [Device Code Grant](https://oauth.net/2/grant-types/device-code/)
34
+ - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
35
+ - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
36
+ - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
37
+
38
+ #### Confidential Client:
39
+ - [Authorization Code Grant](https://oauth.net/2/grant-types/authorization-code/) with a client credential
40
+ - [Refresh Token Grant](https://oauth.net/2/grant-types/refresh-token/)
41
+ - [Silent Flow](https://docs.microsoft.com/azure/active-directory/develop/msal-acquire-cache-tokens#acquiring-tokens-silently-from-the-cache)
42
+ - [Client Credential Grant](https://oauth.net/2/grant-types/client-credentials/)
43
+ - [On-behalf-of flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow)
44
+ - [Username and Password flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#usernamepassword)
45
+
46
+ **[Coming Soon]** In the future we plan to add support for:
47
+ - [Integrated Windows Authentication flow](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows#integrated-windows-authentication)
48
+
49
+ More details on different grant types supported by Microsoft authentication libraries in general can be found [here](https://docs.microsoft.com/azure/active-directory/develop/msal-authentication-flows).
50
+
51
+ ### Scenarios supported:
52
+
53
+ The scenarios supported with this library are:
54
+ - Desktop app that calls web APIs
55
+ - Web app that calls web APIs
56
+ - Web APIs that call web APIs
57
+ - Daemon apps
58
+
59
+ More details on scenarios and the authentication flows that map to each of them can be found [here](https://docs.microsoft.com/azure/active-directory/develop/authentication-flows-app-scenarios).
60
+
61
+ ## FAQ
62
+
63
+ See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/faq.md).
64
+
65
+ ## Prerequisites
66
+
67
+ Before using `@azure/msal-node` you will need to register your app in the azure portal:
68
+
69
+ - [App registration](https://docs.microsoft.com/graph/auth-register-app-v2)
70
+
71
+ ## Installation
72
+
73
+ ### Via NPM:
74
+ ```javascript
75
+ npm install @azure/msal-node
76
+ ```
77
+ ## Node Version Support
78
+ MSAL Node will follow the [Long Term Support (LTS) schedule of the Node.js project](https://nodejs.org/about/releases/). Our support plan is as follows.
79
+
80
+ Any major MSAL Node release:
81
+ - Will support stable (even-numbered) Maintenance LTS, Active LTS, and Current versions of Node
82
+ - Will drop support for any previously supported Node versions that have reached end of life
83
+ - Will not support prerelease/preview/pending versions until they are stable
84
+
85
+ | MSAL Node version | MSAL support status | Supported Node versions |
86
+ |-------------------|-------------------------|-------------------------|
87
+ | 1.x.x | Active development | 10, 12, 14, 16, 18 |
88
+
89
+
90
+ ## Usage
91
+
92
+ ### MSAL basics
93
+ - [Understand difference in between Public Client and Confidential Clients](https://docs.microsoft.com/azure/active-directory/develop/msal-client-applications)
94
+ - [Initialize a Public Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-public-client-application.md)
95
+ - [Initialize a Confidential Client Application](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-confidential-client-application.md)
96
+ - [Configuration](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/configuration.md)
97
+ - [Request](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/request.md)
98
+ - [Response](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/docs/Response.md)
99
+
100
+ ## Samples
101
+ There are multiple [samples](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples) included in the repository that use MSAL Node to acquire tokens. These samples are currently used for manual testing, and are not meant to be a reference of best practices, therefore use judgement and do not blindly copy this code to any production applications.
102
+
103
+ AAD samples:
104
+
105
+ - [auth-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code): Express app using OAuth2.0 authorization code flow.
106
+ - [auth-code-pkce](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/auth-code-pkce): Express app using OAuth2.0 authorization code flow with PKCE.
107
+ - [device-code](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/device-code): Command line app using OAuth 2.0 device code flow.
108
+ - [refresh-token](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/refresh-token): Command line app using OAuth 2.0 refresh flow.
109
+ - [silent-flow](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/silent-flow): Express app using OAuth2.0 authorization code flow to acquire a token and store in the token cache, and silent flow to use tokens in the token cache.
110
+ - [client-credentials](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/client-credentials): Daemon app using OAuth 2.0 client credential grant to acquire a token.
111
+ - [on-behalf-of](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/on-behalf-of): Web application using OAuth 2.0 auth code flow to acquire a token for a web API. The web API validates the token, and calls Microsoft Graph on behalf of the user who authenticated in the web application.
112
+ - [username-password](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/username-password): Web application using OAuth 2.0 resource owner password credentials (ROPC) flow to acquire a token for a web API.
113
+ - [ElectronTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ElectronTestApp): Electron desktop application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
114
+ - [ExpressTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ExpressTestApp): Express.js MVC web application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
115
+ - [Hybrid Spa Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/HybridSample): Sample demonstrating how to use `enableSpaAuthorizationCode` to perform SSO for applications that leverage server-side and client-side authentication using MSAL Browser and MSAL Node.
116
+
117
+ B2C samples:
118
+
119
+ - [b2c-user-flows](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/b2c-user-flows): Express app using OAuth2.0 authorization code flow.
120
+ - [ms-identity-b2c-javascript-nodejs-management](https://github.com/Azure-Samples/ms-identity-b2c-javascript-nodejs-management/tree/main/Chapter2): Command line app using OAuth 2.0 client credentials flow for performing user management operations on an Azure AD / Azure AD B2C tenant
121
+
122
+ Others:
123
+
124
+ - [msal-node-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/samples/msal-node-extensions): Uses authorization code flow to acquire tokens and the [msal-extensions](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/extensions/) library to write the MSAL in-memory token cache to disk.
125
+
126
+ ## Build and Test
127
+
128
+ - If you don't have [lerna](https://github.com/lerna/lerna) installed, run `npm install -g lerna`
129
+ - Run `lerna bootstrap` from anywhere within `microsoft-authentication-library-for-js.git`.
130
+ - Navigate to `microsoft-authentication-library-for-js/lib/msal-common` and run `npm run build`
131
+ - Navigate to `microsoft-authentication-library-for-js/lib/msal-node` and run `npm run build`
132
+
133
+ ```javascript
134
+ // to link msal-node and msal-common packages
135
+ lerna bootstrap
136
+
137
+ // Change to the msal-node package directory
138
+ cd lib/msal-common/
139
+
140
+ // To run build only for node package
141
+ npm run build
142
+
143
+ // Change to the msal-node package directory
144
+ cd lib/msal-node/
145
+
146
+ // To run build only for node package
147
+ npm run build
148
+ ```
149
+
150
+ ### Local Development
151
+ Below is a list of commands you will probably find useful:
152
+
153
+ #### `npm run build:modules:watch`
154
+ Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab. The library will be rebuilt if you make edits.
155
+
156
+ #### `npm run build`
157
+ Bundles the package to the `dist` folder.
158
+ The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
159
+
160
+ #### `lerna bootstrap`
161
+ If you are running the project in development/watch mode, or have made changes in `msal-common` and need them reflecting across the project, please run `lerna bootstrap` to link all the symbols. Please note that `npm install` will unlink all the code, hence it is advised to run `lerna bootstrap` post installation.
162
+
163
+ #### `npm run lint`
164
+ Runs eslint with Prettier
165
+
166
+ #### `npm test`, `npm run test:coverage`, `npm run test:watch`
167
+ Runs the test watcher (Jest) in an interactive mode.
168
+ By default, runs tests related to files changed since the last commit.
169
+ Generate code coverage by adding the flag --coverage. No additional setup needed. Jest can collect code coverage information from entire projects, including untested files.
170
+
171
+ ## Security Reporting
172
+
173
+ If you find a security issue with our libraries or services please report it to [secure@microsoft.com](mailto:secure@microsoft.com) with as much detail as possible. Your submission may be eligible for a bounty through the [Microsoft Bounty](http://aka.ms/bugbounty) program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting [this page](https://technet.microsoft.com/security/dd252948) and subscribing to Security Advisory Alerts.
174
+
175
+ ## License
176
+
177
+ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License.
178
+
179
+ ## We Value and Adhere to the Microsoft Open Source Code of Conduct
180
+
181
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
@@ -1,4 +1,4 @@
1
- import { AuthenticationResult, Logger } from "@azure/msal-common";
1
+ import { AccountInfo, AuthenticationResult, Logger } from "@azure/msal-common";
2
2
  import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
3
3
  import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest";
4
4
  import { DeviceCodeRequest } from "../request/DeviceCodeRequest";
@@ -7,6 +7,7 @@ import { SilentFlowRequest } from "../request/SilentFlowRequest";
7
7
  import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest";
8
8
  import { TokenCache } from "../cache/TokenCache";
9
9
  import { InteractiveRequest } from "../request/InteractiveRequest";
10
+ import { SignOutRequest } from "../request/SignOutRequest";
10
11
  /**
11
12
  * Interface for the PublicClientApplication class defining the public API signatures
12
13
  * @public
@@ -34,5 +35,9 @@ export interface IPublicClientApplication {
34
35
  setLogger(logger: Logger): void;
35
36
  /** Clear the cache */
36
37
  clearCache(): void;
38
+ /** Gets all cached accounts */
39
+ getAllAccounts(): Promise<AccountInfo[]>;
40
+ /** Removes cache artifacts associated with the given account */
41
+ signOut(request: SignOutRequest): Promise<void>;
37
42
  }
38
43
  //# sourceMappingURL=IPublicClientApplication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IPublicClientApplication.d.ts","sourceRoot":"","sources":["../src/client/IPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IAErC,mDAAmD;IACnD,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,CAA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AAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEzC,gEAAgE;IAChE,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnD"}
@@ -1,15 +1,18 @@
1
- import { AuthenticationResult } from "@azure/msal-common";
1
+ import { AuthenticationResult, AccountInfo } from "@azure/msal-common";
2
2
  import { Configuration } from "../config/Configuration";
3
3
  import { ClientApplication } from "./ClientApplication";
4
4
  import { IPublicClientApplication } from "./IPublicClientApplication";
5
5
  import { DeviceCodeRequest } from "../request/DeviceCodeRequest";
6
6
  import { InteractiveRequest } from "../request/InteractiveRequest";
7
+ import { SilentFlowRequest } from "../request/SilentFlowRequest";
8
+ import { SignOutRequest } from "../request/SignOutRequest";
7
9
  /**
8
10
  * This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
9
11
  * are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user.
10
12
  * @public
11
13
  */
12
14
  export declare class PublicClientApplication extends ClientApplication implements IPublicClientApplication {
15
+ private nativeBrokerPlugin?;
13
16
  /**
14
17
  * Important attributes in the Configuration object for auth are:
15
18
  * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal.
@@ -39,8 +42,25 @@ export declare class PublicClientApplication extends ClientApplication implement
39
42
  */
40
43
  acquireTokenByDeviceCode(request: DeviceCodeRequest): Promise<AuthenticationResult | null>;
41
44
  /**
42
- * Acquires a token by requesting an Authorization code then exchanging it for a token.
45
+ * Acquires a token interactively via the browser by requesting an authorization code then exchanging it for a token.
43
46
  */
44
47
  acquireTokenInteractive(request: InteractiveRequest): Promise<AuthenticationResult>;
48
+ /**
49
+ * Returns a token retrieved either from the cache or by exchanging the refresh token for a fresh access token. If brokering is enabled the token request will be serviced by the broker.
50
+ * @param request
51
+ * @returns
52
+ */
53
+ acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult | null>;
54
+ /**
55
+ * Removes cache artifacts associated with the given account
56
+ * @param request
57
+ * @returns
58
+ */
59
+ signOut(request: SignOutRequest): Promise<void>;
60
+ /**
61
+ * Returns all cached accounts for this application. If brokering is enabled this request will be serviced by the broker.
62
+ * @returns
63
+ */
64
+ getAllAccounts(): Promise<AccountInfo[]>;
45
65
  }
46
66
  //# sourceMappingURL=PublicClientApplication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,oBAAoB,EAQvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAInE;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,iBAAkB,YAAW,wBAAwB;IAC9F;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAIxC;;;;;;;;OAQG;IACU,wBAAwB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAwBvG;;OAEG;IACG,uBAAuB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAsC5F"}
1
+ {"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAMA,OAAO,EAEH,oBAAoB,EAUpB,WAAW,EAEd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,iBAAkB,YAAW,wBAAwB;IAC9F,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAYxC;;;;;;;;OAQG;IACU,wBAAwB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAwBvG;;OAEG;IACG,uBAAuB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IA6DzF;;;;OAIG;IACG,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAsB1F;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAarD;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAQjD"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { LoggerOptions, INetworkModule, ProtocolMode, ICachePlugin, AzureCloudOptions, ApplicationTelemetry } from "@azure/msal-common";
2
+ import { LoggerOptions, INetworkModule, ProtocolMode, ICachePlugin, AzureCloudOptions, ApplicationTelemetry, INativeBrokerPlugin } from "@azure/msal-common";
3
3
  import { AgentOptions as httpAgentOptions } from "http";
4
4
  import { AgentOptions as httpsAgentOptions } from "https";
5
5
  /**
@@ -40,6 +40,16 @@ export declare type NodeAuthOptions = {
40
40
  export declare type CacheOptions = {
41
41
  cachePlugin?: ICachePlugin;
42
42
  };
43
+ /**
44
+ * Use this to configure the below broker options:
45
+ * - nativeBrokerPlugin - Native broker implementation (should be imported from msal-node-extensions)
46
+ *
47
+ * Note: These options are only available for PublicClientApplications using the Authorization Code Flow
48
+ * @public
49
+ */
50
+ export declare type BrokerOptions = {
51
+ nativeBrokerPlugin?: INativeBrokerPlugin;
52
+ };
43
53
  /**
44
54
  * Type for configuring logger and http client options
45
55
  *
@@ -60,18 +70,22 @@ export declare type NodeTelemetryOptions = {
60
70
  * Use the configuration object to configure MSAL and initialize the client application object
61
71
  *
62
72
  * - auth: this is where you configure auth elements like clientID, authority used for authenticating against the Microsoft Identity Platform
73
+ * - broker: this is where you configure broker options
63
74
  * - cache: this is where you configure cache location
64
75
  * - system: this is where you can configure the network client, logger
76
+ * - telemetry: this is where you can configure telemetry options
65
77
  * @public
66
78
  */
67
79
  export declare type Configuration = {
68
80
  auth: NodeAuthOptions;
81
+ broker?: BrokerOptions;
69
82
  cache?: CacheOptions;
70
83
  system?: NodeSystemOptions;
71
84
  telemetry?: NodeTelemetryOptions;
72
85
  };
73
86
  export declare type NodeConfiguration = {
74
87
  auth: Required<NodeAuthOptions>;
88
+ broker: BrokerOptions;
75
89
  cache: CacheOptions;
76
90
  system: Required<NodeSystemOptions>;
77
91
  telemetry: Required<NodeTelemetryOptions>;
@@ -87,5 +101,5 @@ export declare type NodeConfiguration = {
87
101
  * @returns Configuration
88
102
  * @public
89
103
  */
90
- export declare function buildAppConfiguration({ auth, cache, system, telemetry }: Configuration): NodeConfiguration;
104
+ export declare function buildAppConfiguration({ auth, broker, cache, system, telemetry }: Configuration): NodeConfiguration;
91
105
  //# sourceMappingURL=Configuration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../src/config/Configuration.ts"],"names":[],"mappings":";AAKA,OAAO,EACH,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,YAAY,EAGZ,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,oBAAoB,CAA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;;;;;GAUG;AACH,wBAAgB,qBAAqB,CAAC,EAClC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACZ,EAAE,aAAa,GAAG,iBAAiB,CAcnC"}
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { IConfidentialClientApplication } from "./client/IConfidentialClientAppl
7
7
  export { ITokenCache } from "./cache/ITokenCache";
8
8
  export { ICacheClient } from "./cache/distributed/ICacheClient";
9
9
  export { IPartitionManager } from "./cache/distributed/IPartitionManager";
10
+ export { ILoopbackClient } from "./network/ILoopbackClient";
10
11
  export { PublicClientApplication } from "./client/PublicClientApplication";
11
12
  export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication";
12
13
  export { ClientApplication } from "./client/ClientApplication";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAGH,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAChI,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAG3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MA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