@azure/msal-browser
Advanced tools
Comparing version 2.0.0-beta.0 to 2.0.0-beta.1
@@ -0,1 +1,12 @@ | ||
# 2.0.0-beta.1 | ||
## Features | ||
* Added a silent iframe flow in the @azure/msal-browser package (#1451) | ||
* Includes an ssoSilent() API to acquire tokens silently with a user context (loginHint) | ||
## Bugs | ||
* Fixed an issue where TokenResponse is not exported | ||
## Enhancements | ||
* handleRedirectCallback flow was modified, will be deprecated in favor of handleRedirectPromise(), added log message (#1490, #1543) | ||
# 2.0.0-beta.0 | ||
@@ -2,0 +13,0 @@ ## Features |
@@ -13,3 +13,3 @@ { | ||
}, | ||
"version": "2.0.0-beta.0", | ||
"version": "2.0.0-beta.1", | ||
"description": "Microsoft Authentication Library for js", | ||
@@ -44,3 +44,2 @@ "keywords": [ | ||
"doc:deploy": "gh-pages -d ref -a -e ref/msal-browser", | ||
"pretest": "npm link @azure/msal-common", | ||
"test": "mocha", | ||
@@ -81,3 +80,3 @@ "test:coverage": "nyc --reporter=text mocha", | ||
"jsdom-global": "^3.0.2", | ||
"mocha": "^6.2.2", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.0", | ||
@@ -89,2 +88,3 @@ "rimraf": "^3.0.0", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"rollup-plugin-json": "^4.0.0", | ||
"shx": "^0.3.2", | ||
@@ -95,7 +95,7 @@ "sinon": "^7.5.0", | ||
"typedoc": "^0.16.11", | ||
"typescript": "^3.6.4" | ||
"typescript": "^3.8.3" | ||
}, | ||
"dependencies": { | ||
"@azure/msal-common": "1.0.0-beta.0" | ||
"@azure/msal-common": "1.0.0-beta.1" | ||
} | ||
} |
@@ -8,3 +8,3 @@ # (Preview) Microsoft Authentication Library for JavaScript (MSAL.js) 2.0 for Browser-Based Single-Page Applications | ||
1. [About](#about) | ||
2. [FAQ](./FAQ.md) | ||
2. [FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/FAQ.md) | ||
3. [Releases](#releases) | ||
@@ -26,5 +26,9 @@ 4. [Prerequisites](#prerequisites) | ||
**Important:** MSAL.js 2.0 with Authorization Code Flow is **not** yet available for B2C tenants (coming soon). | ||
Want to join our Private Preview and test out the lastest changes to the Azure Portal? Fill out [this form]( https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR_XA414hlD9MhfBiqanxI2JUOElQMk1LUjNBWDY4R0w3MFlPR0FIMkxMVC4u) | ||
The MSAL library for JavaScript enables client-side JavaScript 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). | ||
The `@azure/msal-browser` package described by the code in this folder uses the [`@azure/msal-common` package](../msal-common/) as a dependency to enable authentication in Javascript Single-Page Applications without backend servers. This version of the library uses the OAuth 2.0 Authorization Code Flow with PKCE. To read more about this protocol, as well as the differences between implicit flow and authorization code flow, see the section [below](#oauth-2.0-and-the-implicit-flow-vs-authorization-code-flow-with-pkce). If you are looking for the version of the library that uses the implicit flow, please see the [`msal-core` library](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-core). | ||
The `@azure/msal-browser` package described by the code in this folder uses the [`@azure/msal-common` package](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-common) as a dependency to enable authentication in Javascript Single-Page Applications without backend servers. This version of the library uses the OAuth 2.0 Authorization Code Flow with PKCE. To read more about this protocol, as well as the differences between implicit flow and authorization code flow, see the section [below](#oauth-2.0-and-the-implicit-flow-vs-authorization-code-flow-with-pkce). If you are looking for the version of the library that uses the implicit flow, please see the [`msal-core` library](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-core). | ||
@@ -37,3 +41,3 @@ This is an improvement upon the current `msal-core` library which will utilize the authorization code flow in the browser. Most features available in the old library will be available in this one, but there are nuances to the authentication flow in both. The `@azure/msal-browser` package does NOT support the implicit flow. | ||
See [here](./FAQ.md). | ||
See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/FAQ.md). | ||
@@ -58,8 +62,4 @@ ## Releases | ||
![Changing Redirect URI type](./docs/images/redirectURIRegistrationUpdate.png) | ||
![Changing Redirect URI type](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/images/redirectURIRegistrationUpdate.png) | ||
2. Ensure your `Default Client Type` settings have "Treat application as public client" set to "Yes". | ||
![Changing Default Client type](./docs/images/clientTypeRegistrationUpdate.png) | ||
## Installation | ||
@@ -76,21 +76,21 @@ ### Via NPM: | ||
If you have MSAL v1.x currently running in your application, you can follow the instructions [here](./docs/v1-migration.md) to migrate your application to using the `@azure/msal-browser` package. | ||
If you have MSAL v1.x currently running in your application, you can follow the instructions [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/v1-migration.md) to migrate your application to using the `@azure/msal-browser` package. | ||
### MSAL Basics | ||
1. [Initialization](./docs/initialization.md) | ||
2. [Logging in a User](./docs/login-user.md) | ||
3. [Acquiring and Using an Access Token](./docs/acquire-token.md) | ||
4. [Managing Token Lifetimes](./docs/token-lifetimes.md) | ||
5. [Logging Out a User](./docs/logout.md) | ||
1. [Initialization](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/initialization.md) | ||
2. [Logging in a User](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/login-user.md) | ||
3. [Acquiring and Using an Access Token](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/acquire-token.md) | ||
4. [Managing Token Lifetimes](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/token-lifetimes.md) | ||
5. [Logging Out a User](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/logout.md) | ||
### Advanced Topics | ||
- [Configuration Options](./docs/configuration.md) | ||
- [Request and Response Details](./docs/request-response-object.md) | ||
- [Cache Storage](./docs/caching.md) | ||
- [Configuration Options](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md) | ||
- [Request and Response Details](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/request-response-object.md) | ||
- [Cache Storage](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/caching.md) | ||
## Samples | ||
The [`VanillaJSTestApp2.0` folder](../../samples/VanillaJSTestApp2.0) contains sample applications for our libraries. You can run any sample by changing the `authConfig.js` file in the respective folder to match your app registration and running the `npm` command `npm start -- -s <sample-name> -p <port>`. | ||
The [`VanillaJSTestApp2.0` folder](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples) contains sample applications for our libraries. You can run any sample by changing the `authConfig.js` file in the respective folder to match your app registration and running the `npm` command `npm start -- -s <sample-name> -p <port>`. | ||
@@ -101,5 +101,7 @@ Here is a complete list of samples for the MSAL.js 2.x library: | ||
| ------ | ----------- | ---------- | | ||
| [Basic Auth Sample](../../samples/VanillaJSTestApp2.0/default) | A vanilla Javascript sample showing basic usage of the MSAL 2.0 library (`@azure/msal-browser` package) with the Microsoft Graph API. | `npm start -- -s default` | | ||
| [Basic Auth Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/VanillaJSTestApp2.0/app/default) | A vanilla Javascript sample showing basic usage of the MSAL 2.0 library (`@azure/msal-browser` package) with the Microsoft Graph API. | `npm start -- -s default` | | ||
| [On Page Load Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/VanillaJSTestApp2.0/app/onPageLoad) | A vanilla JS sample showing usage of MSAL 2.0 with authentication on page load with a redirect. | `npm start -- -s onPageLoad` | | ||
| [ssoSilent() Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/VanillaJSTestApp2.0/app/ssoSilent) | A vanilla JS sample showing usage of the ssoSilent API, allowing you to sign in a user silently if a context exists on the authentication server. | `npm start -- -s ssoSilent` | | ||
More instructions to run the sample can be found in the [`README.md` file](../../samples/VanillaJSTestApp2.0/README.md) of the VanillaJSTestApp2.0 folder. | ||
More instructions to run the samples can be found in the [`README.md` file](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/samples/VanillaJSTestApp2.0/Readme.md) of the VanillaJSTestApp2.0 folder. | ||
@@ -154,3 +156,3 @@ ## Build and Test | ||
You can learn further details about `@azure/msal-browser` functionality documented in our [docs folder](./docs) and find complete [code samples](#samples). | ||
You can learn further details about `@azure/msal-browser` functionality documented in our [docs folder](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser/docs) and find complete [code samples](#samples). | ||
@@ -157,0 +159,0 @@ ## Security Reporting |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2241499
30
13691
163
38
+ Added@azure/msal-common@1.0.0-beta.1(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedms@2.1.3(transitive)
- Removed@azure/msal-common@1.0.0-beta.0(transitive)