Skip to content

Commit 0a96307

Browse files
authored
Merge pull request #239282 from MicrosoftDocs/main
Merge main to live, 4 AM
2 parents a502733 + 1638d9c commit 0a96307

File tree

122 files changed

+2035
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2035
-537
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,12 @@
746746
"branch": "main",
747747
"branch_mapping": {}
748748
},
749+
{
750+
"path_to_root": "web-apps-node-iot-hub-data-visualization",
751+
"url": "https://github.com/azure-samples/web-apps-node-iot-hub-data-visualization",
752+
"branch": "master",
753+
"branch_mapping": {}
754+
},
749755
{
750756
"path_to_root": "ImmersiveReaderSdk",
751757
"url": "https://github.com/microsoft/immersive-reader-sdk",

articles/active-directory/external-identities/customers/how-to-single-page-application-react-prepare-app.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
11
---
2-
title: Prepare a React Single Page App (SPA) for authentication
3-
description: Learn how to prepare a React single-page app (SPA) for authentication and authorization with your Azure Active Directory (AD) for customers tenant.
2+
title: Prepare a React single-page app (SPA) for authentication
3+
description: Learn how to prepare a React single-page app (SPA) for authentication with your Azure Active Directory (AD) for customers tenant.
44
services: active-directory
5-
author: godonnell
5+
author: garrodonnell
66
manager: celestedg
77
ms.service: active-directory
8-
ms.workload: identity
98
ms.subservice: ciam
109
ms.topic: how-to
1110
ms.date: 05/23/2023
1211
ms.author: godonnell
13-
ms.custom: it-pro
1412

15-
#Customer intent: As a dev, devops, or IT admin, enable authentication in my own React
13+
#Customer intent: As a dev, devops, or IT admin, I want to learn how to enable authentication in my own React single-page app
1614
---
17-
# Prepare a React Single-page application for authentication
18-
19-
After registration is complete, a React project can be created using an integrated development environment (IDE). This tutorial demonstrates how to create a React Single-page application using npm and create files needed for authentication and authorization.
20-
21-
In this article, you learn how to:
22-
23-
> [!div class="checklist"]
24-
> * Create a new React project
25-
> * Configure the settings for the application
26-
> * Install identity and bootstrap packages
27-
> * Add authentication code to the application
15+
# Prepare a React single-page app (SPA) for authentication
16+
After registration is complete, you can create a React project using an integrated development environment (IDE). This guide demonstrates how to create a React single-page app using npm and create files needed for authentication and authorization.
2817

2918
## Prerequisites
30-
* Completion of the prerequisites and steps in [Prepare your customer tenant for building a React Single Page App (SPA)](./how-to-single-page-application-react-prepare-tenant.md))
19+
* Completion of the prerequisites and steps in [Prepare your customer tenant for building a React single-page app (SPA)](./how-to-single-page-application-react-prepare-tenant.md))
3120
* Although any IDE that supports React applications can be used, Visual Studio Code is used for this guide. This can be downloaded from the [Downloads](https://visualstudio.microsoft.com/downloads/) page.
3221
* [Node.js](https://nodejs.org/en/download/)
3322

3423
## Create a new React project
35-
36-
Use the following tabs to create a React project within the IDE.
24+
Use the following tabs to create a React project within Visual Studio Code.
3725

3826
1. Open Visual Studio Code, select **File** > **Open Folder...**. Navigate to and select the location in which to create your project.
3927
1. Open a new terminal by selecting **Terminal** > **New Terminal**.
@@ -46,7 +34,6 @@ Use the following tabs to create a React project within the IDE.
4634
```
4735
4836
## Install identity and bootstrap packages
49-
5037
Identity related **npm** packages must be installed in the project to enable user authentication. For project styling, **Bootstrap** will be used.
5138
5239
1. In the **Terminal** bar, select the **+** icon to create a new terminal. A separate terminal window will open with the previous node terminal continuing to run in the background.
@@ -58,7 +45,6 @@ Identity related **npm** packages must be installed in the project to enable use
5845
```
5946
6047
## Creating the authentication configuration file
61-
6248
1. In the *src* folder, create a new file called *authConfig.js*.
6349
1. Open *authConfig.js* and add the following code snippet:
6450
@@ -135,7 +121,6 @@ Identity related **npm** packages must be installed in the project to enable use
135121
136122
137123
## Modify index.js to include the authentication provider
138-
139124
All parts of the app that require authentication must be wrapped in the [`MsalProvider`](/javascript/api/@azure/msal-react/#@azure-msal-react-msalprovider) component. You instantiate a [PublicClientApplication](/javascript/api/@azure/msal-browser/publicclientapplication) then pass it to `MsalProvider`.
140125
141126
1. In the *src* folder, open *index.js* and replace the contents of the file with the following code snippet to use the `msal` packages and bootstrap styling:
@@ -146,4 +131,4 @@ All parts of the app that require authentication must be wrapped in the [`MsalPr
146131
## Next steps
147132
148133
> [!div class="nextstepaction"]
149-
> [Add Sign-in and Sign-out functionality to your app.](./how-to-single-page-application-react-sign-in-out.md)
134+
> [Add sign-in and sign-out functionality to your app.](./how-to-single-page-application-react-sign-in-out.md)

articles/active-directory/external-identities/customers/how-to-single-page-application-react-prepare-tenant.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
---
2-
title: Prepare your tenant to use a React single-page app for authentication.
2+
title: Prepare your customer tenant to authenticate users in a React single-page app (SPA)
33
description: Learn how to configure your Azure Active Directory (AD) for customers tenant for authentication with a React single-page app (SPA).
44
services: active-directory
5-
author: godonnell
5+
author: garrodonnell
66
manager: celestedg
77
ms.service: active-directory
88
ms.workload: identity
99
ms.subservice: ciam
1010
ms.topic: how-to
1111
ms.date: 05/23/2023
1212
ms.author: godonnell
13-
ms.custom: it-pro
1413

15-
#Customer intent: As a dev I want to prepare my customer tenant for building a Single Page App with React
14+
#Customer intent: As a dev I want to prepare my customer tenant for building a single-page app (SPA) with React
1615
---
17-
# Prepare your customer tenant for building a Single Page App (SPA)
16+
# Prepare your customer tenant to authenticate users in a React single-page app (SPA)
1817

19-
Before your applications can interact with Microsoft Identity Platform they must be registered in a customer tenant that you manage and must be associated with a user flow.
18+
Before your applications can interact with Microsoft identity platform they must be registered in a customer tenant that you manage and must be associated with a user flow.
2019

21-
In this article, you learn how to:
22-
23-
> [!div class="checklist"]
24-
> * Register your application and record identifiers.
25-
> * Create a user flow to allow sign-up and sign-in.
26-
> * Associate the user flow with your application.
20+
In this article, you learn how to register your application and record identifies, create a user flow and associate that user flow with your application.
2721

2822
## Prerequisites
2923

@@ -54,4 +48,4 @@ If you haven't already created your own customer tenant, [create one now](https:
5448
## Next steps
5549

5650
> [!div class="nextstepaction"]
57-
> [Start building your React Single Page Application](./how-to-single-page-application-react-prepare-app.md)
51+
> [Start building your React single-page app](./how-to-single-page-application-react-prepare-app.md)

articles/active-directory/external-identities/customers/how-to-single-page-application-react-sample.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
---
22
title: Sign in users in a sample React single-page application
3-
description: Learn how to configure a sample React SPA to sign in and sign out users.
3+
description: Learn how to configure a sample React single-page app (SPA) to sign in and sign out users.
44
services: active-directory
55
author: garrodonnell
66
manager: celestedg
77
ms.author: godonnell
88
ms.service: active-directory
9-
ms.workload: identity
109
ms.subservice: ciam
1110
ms.topic: how-to
1211
ms.date: 05/23/2023
13-
ms.custom: developer
1412

15-
#Customer intent: As a dev, devops, I want to learn about how to configure a sample React Single Page Application to sign in and sign out users with my Azure Active Directory (Azure AD) for customers tenant
13+
#Customer intent: As a dev, devops, I want to learn about how to configure a sample React single-page app to sign in and sign out users with my Azure Active Directory (Azure AD) for customers tenant
1614
---
1715

18-
# Sign in users in a sample React single-page application
16+
# Sign in users in a sample React single-page app (SPA)
1917

20-
This how-to guide uses a sample React single-page application (SPA) to demonstrate how to add authentication to a SPA. This SPA enables users to sign in and sign out by using you Azure Active Directory (Azure AD) for customers tenant. The sample uses the [Microsoft Authentication Library for JavaScript (MSAL.js)](https://github.com/AzureAD/microsoft-authentication-library-for-js) to handle authentication.
18+
This guide uses a sample React single-page application (SPA) to demonstrate how to add authentication to a SPA. This SPA enables users to sign in and sign out by using you Azure Active Directory (Azure AD) for customers tenant. The sample uses the [Microsoft Authentication Library for JavaScript (MSAL.js)](https://github.com/AzureAD/microsoft-authentication-library-for-js) to handle authentication.
2119

2220
## Prerequisites
23-
24-
* Although any IDE that supports vanilla JS applications can be used, **Visual Studio Code** is used for this guide. It can be downloaded from the [Downloads](https://visualstudio.microsoft.com/downloads) page.
21+
* Although any IDE that supports React applications can be used, **Visual Studio Code** is used for this guide. It can be downloaded from the [Downloads](https://visualstudio.microsoft.com/downloads) page.
2522
* [Node.js](https://nodejs.org/en/download/).
2623
* Azure AD for customers tenant. If you don't already have one, [sign up for a free trial](https://aka.ms/ciam-free-trial?wt.mc_id=ciamcustomertenantfreetrial_linkclick_content_cnl).
2724

@@ -80,7 +77,6 @@ If you choose to download the `.zip` file, extract the sample app file to a fold
8077
1. Save the file.
8178
8279
## Run your project and sign in
83-
8480
All the required code snippets have been added, so the application can now be called and tested in a web browser.
8581
8682
1. Open a new terminal by selecting **Terminal** > **New Terminal**.
@@ -98,5 +94,5 @@ All the required code snippets have been added, so the application can now be ca
9894
1. Once signed in the display name is shown next to the **Sign out** button.
9995
10096
## Next steps
101-
102-
Learn how to use the Microsoft Authentication Library (MSAL) for JavaScript to sign in users and acquire tokens to call Microsoft Graph.
97+
> [!div class="nextstepaction"]
98+
> [Enable self-service password reset](./how-to-enable-password-reset-customers.md)

articles/active-directory/external-identities/customers/how-to-single-page-application-react-sign-in-out.md

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Sign in users with a React single-page-application
2+
title: Add sign-in to a React single-page app (SPA)
33
description: Learn how to configure a React single-page app (SPA) to sign in and sign out users with your Azure Active Directory (AD) for customers tenant.
44
services: active-directory
55
author: godonnell
@@ -12,25 +12,17 @@ ms.date: 05/23/2023
1212
ms.author: godonnell
1313
ms.custom: it-pro
1414

15-
#Customer intent: As a developer I want to add sign-in and sign-out functionality to my React Single Page App
15+
#Customer intent: As a developer I want to add sign-in and sign-out functionality to my React single-page app
1616
---
1717

18-
# Create components for sign in and sign out in a React single page app
19-
18+
# Add sign-in to a React single-page app (SPA)
2019
Functional components are the building blocks of React apps. This tutorial demonstrates how functional components can be used to build the sign in and sign out experience in a React single-page app (SPA). The `useMsal` hook is used to retrieve an access token to allow user sign in.
2120

22-
In this tutorial:
23-
24-
> [!div class="checklist"]
25-
>
26-
> - Add components to the application
27-
> - Create a way of displaying the user's profile information
28-
> - Create a layout that displays the sign in and sign out experience
29-
> - Add the sign in and sign out experiences
21+
In this article you will add components to the application and create a layout that displays the sign in and sign out experience. You will also add sign in and sign out experiences.
3022

3123
## Prerequisites
3224

33-
* Completion of the prerequisites and steps in [Prepare an Single Page Application for authentication](how-to-single-page-application-react-prepare-app.md).
25+
* Completion of the prerequisites and steps in [Prepare an single-page app for authentication](how-to-single-page-application-react-prepare-app.md).
3426

3527

3628
## Adding components to the application
@@ -42,8 +34,6 @@ In this tutorial:
4234
- *SignInButton.jsx*
4335
- *SignOutButton.jsx*
4436

45-
---
46-
4737
Once complete, you should have the following folder structure.
4838

4939
```txt
@@ -58,7 +48,6 @@ reactspalocal/
5848
```
5949

6050
### Adding the page layout
61-
6251
1. Open *PageLayout.jsx* and add the following code to render the page layout. The [useIsAuthenticated](/javascript/api/@azure/msal-react) hook returns whether or not a user is currently signed-in.
6352

6453
```javascript
@@ -110,7 +99,6 @@ reactspalocal/
11099
1. Save the file.
111100

112101
### Adding the sign in experience
113-
114102
1. Open *SignInButton.jsx* and add the following code, which creates a button that signs in the user using either a pop-up or redirect.
115103

116104
```javascript
@@ -163,7 +151,6 @@ reactspalocal/
163151
1. Save the file.
164152

165153
### Adding the sign out experience
166-
167154
1. Open *SignOutButton.jsx* and add the following code, which creates a button that signs out the user using either a pop-up or redirect.
168155

169156
```javascript
@@ -210,7 +197,6 @@ reactspalocal/
210197
```
211198

212199
## Change filename and add required imports
213-
214200
By default, the application runs via a JavaScript file called *App.js*. It needs to be renamed to *App.jsx*, which is an extension that allows a developer to write HTML in React.
215201

216202
1. Rename App.js to App.jsx.
@@ -230,7 +216,6 @@ By default, the application runs via a JavaScript file called *App.js*. It needs
230216
```
231217

232218
### Replacing the default function to render authenticated information
233-
234219
The following code will render based on whether the user is authenticated or not. Replace the default function `App()` to render authenticated information with the following code:
235220

236221
```javascript
@@ -267,7 +252,6 @@ export default function App() {
267252
```
268253

269254
## Run your project and sign in
270-
271255
All the required code snippets have been added, so the application can now be called and tested in a web browser.
272256

273257
1. Open a new terminal by selecting **Terminal** > **New Terminal**.
@@ -277,20 +261,18 @@ All the required code snippets have been added, so the application can now be ca
277261
npm start
278262
```
279263
280-
1. Open a web browser and navigate to the port specified in [Prepare a Single-page application for authentication](./how-to-single-page-application-react-prepare-app.md). For example, http://localhost:3000/.
264+
1. Open a web browser and navigate to the port specified in [Prepare a single-page application for authentication](./how-to-single-page-application-react-prepare-app.md). For example, http://localhost:3000/.
281265
1. For the purposes of this how-to, choose the **Sign in using Popup** option.
282266
1. After the popup window appears with the sign-in options, select the account with which to sign-in.
283267
1. A second window may appear indicating that a code will be sent to your email address. If this happens, select **Send code**. Open the email from the sender Microsoft account team, and enter the 7-digit single-use code. Once entered, select **Sign in**.
284268
1. For **Stay signed in**, you can select either **No** or **Yes**.
285269
1. The app will now ask for permission to sign-in and access data. Select **Accept** to continue.
286270
287271
## Sign out of the application
288-
289272
1. To sign out of the application, select **Sign out** in the navigation bar.
290273
1. A window appears asking which account to sign out of.
291274
1. Upon successful sign out, a final window appears advising you to close all browser windows.
292275
293276
## Next steps
294-
295277
> [!div class="nextstepaction"]
296278
> [Enable self-service password reset](./how-to-enable-password-reset-customers.md)

articles/active-directory/external-identities/customers/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ items:
111111
- name: Prepare app
112112
href: how-to-single-page-application-react-prepare-app.md
113113
- name: Sign in and sign out
114-
href: how-to-single-page-application-react-prepare-app.md
114+
href: how-to-single-page-application-react-sign-in-out.md
115115
- name: Web app
116116
items:
117117
- name: Node/Express.js
@@ -266,7 +266,7 @@ items:
266266
href: microsoft-graph-operations-user-flow.md
267267
- name: Company branding operations
268268
href: microsoft-graph-operations-branding.md
269-
- name: Customer extensions
269+
- name: Custom extensions
270270
href: microsoft-graph-operations-custom-extensions.md
271271
- name: Tenant management operations
272272
href: azure-rest-api-operations-tenant-management.md

articles/active-directory/reports-monitoring/recommendation-remove-unused-apps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: active-directory
88
ms.topic: reference
99
ms.workload: identity
1010
ms.subservice: report-monitor
11-
ms.date: 03/07/2023
11+
ms.date: 05/24/2023
1212
ms.author: sarahlipsey
1313
ms.reviewer: saumadan
1414
ms.collection: M365-identity-device-management
@@ -52,7 +52,7 @@ Take note of the following common scenarios or known limitations of the "Remove
5252
- App proxy
5353
- Add-in apps
5454

55-
* This recommendation currently surfaces applications that were created within the past 30 days *and* shows as unused. Updates to the recommendation to filter out recently created apps so that they can complete a full cycle are in progress.
55+
* The current unused app processor identifies any apps that were created recently. In some instances newly created apps might need more time to deploy the code that uses the application registration. Progress is underway to filter out apps that were created within the past 60 days so they don't show as unused.
5656

5757
## Next steps
5858

articles/advisor/advisor-how-to-plan-migration-workloads-service-retirement.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ ms.date: 05/19/2023
88

99
# Prepare migration of your workloads impacted by service retirement
1010

11-
Azure Advisor helps you assess and improve the continuity of your business-critical applications. It's important to be aware of upcoming Azure products and feature retirements to understand their impact on your workloads and plan migration.
11+
Azure Advisor helps you assess and improve the continuity of your business-critical applications. It's important to be aware of upcoming Azure services and feature retirements to understand their impact on your workloads and plan migration.
1212

1313
## Service Retirement workbook
1414

15-
The Service Retirement workbook provides a single centralized resource level view of product retirements. It helps you assess impact, evaluate options, and plan for migration from retiring products and features. The workbook template is available in Azure Advisor gallery.
15+
The Service Retirement workbook provides a single centralized resource level view of service retirements. It helps you assess impact, evaluate options, and plan for migration from retiring services and features. The workbook template is available in Azure Advisor gallery.
1616
Here's how to get started:
1717

1818
1. Navigate to [Workbooks gallery](https://aka.ms/advisorworkbooks) in Azure Advisor
@@ -30,9 +30,9 @@ The workbook shows a list and a map view of service retirements that impact your
3030
:::image type="content" source="media/advisor-service-retirement-workbook-details.png" alt-text="Screenshot of the Azure Advisor service retirement workbook template, detailed view." lightbox="media/advisor-service-retirement-workbook-details.png":::
3131

3232
> [!NOTE]
33-
> The workbook contains information about a subset of products and features that are in the retirement lifecycle. While we continue to add more services to this workbook, you can view the lifecycle status of all Azure products and services by visiting [Azure updates](https://azure.microsoft.com/updates/?updateType=retirements).
33+
> The workbook contains information about a subset of services and features that are in the retirement lifecycle. While we continue to add more services to this workbook, you can view the lifecycle status of all Azure services by visiting [Azure updates](https://azure.microsoft.com/updates/?updateType=retirements).
3434
35-
For more information about Advisor recommendations, see:
36-
* [Introduction to Advisor](advisor-overview.md)
35+
For more information, see:
3736
* [Azure Service Health](../service-health/overview.md)
3837
* [Azure updates](https://azure.microsoft.com/updates/?updateType=retirements)
38+
* [Introduction to Advisor](advisor-overview.md)

0 commit comments

Comments
 (0)