Skip to content

Commit cbbd768

Browse files
authored
Merge pull request #159117 from MicrosoftDocs/master
5/17 PM Publish
2 parents 2e7b137 + 12e9c57 commit cbbd768

File tree

138 files changed

+1852
-1332
lines changed

Some content is hidden

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

138 files changed

+1852
-1332
lines changed

.openpublishing.redirection.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62288,6 +62288,11 @@
6228862288
"redirect_url": "/azure/cognitive-services/speech-service/custom-keyword-overview",
6228962289
"redirect_document_id": false
6229062290
},
62291+
{
62292+
"source_path_from_root": "/articles/cognitive-services/Speech-Service/custom-keyword-overview.md",
62293+
"redirect_url": "/azure/cognitive-services/speech-service/keyword-recognition-overview",
62294+
"redirect_document_id": false
62295+
},
6229162296
{
6229262297
"source_path_from_root": "/articles/cognitive-services/speech-service/how-to-custom-speech.md",
6229362298
"redirect_url": "/azure/cognitive-services/speech-service/custom-speech-overview",
@@ -65992,6 +65997,11 @@
6599265997
"redirect_url": "/windows-server/remote/remote-desktop-services/remote-desktop-gateway-role",
6599365998
"redirect_document_id": false
6599465999
},
66000+
{
66001+
"source_path": "articles/active-directory/privileged-identity-management/pim-apis-concept.md",
66002+
"redirect_url": "/azure/active-directory/privileged-identity-management/pim-apis",
66003+
"redirect_document_id": false
66004+
},
6599566005
{
6599666006
"source_path": "articles/active-directory/managed-identities-azure-resources/howto-migrate-vm-extension.md",
6599766007
"redirect_url": "/azure/active-directory/managed-identities-azure-resources/overview",
@@ -66106,6 +66116,21 @@
6610666116
"source_path_from_root": "/articles/communication-services/quickstarts/ui-framework/get-started-with-composites.md",
6610766117
"redirect_url": "https://azure.github.io/communication-ui-sdk",
6610866118
"redirect_document_id": false
66119+
},
66120+
{
66121+
"source_path_from_root": "/articles/communication-services/concepts/ui-framework/ui-sdk-features.md",
66122+
"redirect_url": "/azure/communication-services/concepts/ui-library/ui-library-use-cases",
66123+
"redirect_document_id": false
66124+
},
66125+
{
66126+
"source_path_from_root": "/articles/communication-services/concepts/ui-framework/ui-sdk-overview.md",
66127+
"redirect_url": "/azure/communication-services/concepts/ui-library/ui-library-overview",
66128+
"redirect_document_id": false
66129+
},
66130+
{
66131+
"source_path_from_root": "/articles/communication-services/concepts/ui-framework/teams-embed.md",
66132+
"redirect_url": "/azure/communication-services/concepts/ui-library/teams-embed",
66133+
"redirect_document_id": false
6610966134
}
6611066135
]
6611166136
}

articles/active-directory/develop/quickstart-v2-aspnet-core-webapp-calls-graph.md

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: active-directory
1010
ms.subservice: develop
1111
ms.topic: quickstart
1212
ms.workload: identity
13-
ms.date: 12/10/2020
13+
ms.date: 05/17/2021
1414
ms.author: jmprieur
1515
ms.custom: "devx-track-csharp, aaddev, scenarios:getting-started, languages:aspnet-core"
1616
# Customer intent: As an application developer, I want to download and run a demo ASP.NET Core web app that can sign in users with personal Microsoft accounts (MSA) and work/school accounts from any Azure Active Directory instance, then access their data in Microsoft Graph on their behalf.
@@ -28,20 +28,8 @@ See [How the sample works](#how-the-sample-works) for an illustration.
2828
> * [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) or [Visual Studio Code](https://code.visualstudio.com/)
2929
> * [.NET Core SDK 3.1+](https://dotnet.microsoft.com/download)
3030
>
31-
> ## Register and download the quickstart app
32-
> You have two options to start your quickstart application:
33-
> * [Express] [Option 1: Register and auto configure your app and then download your code sample](#option-1-register-and-auto-configure-your-app-and-then-download-your-code-sample)
34-
> * [Manual] [Option 2: Register and manually configure your application and code sample](#option-2-register-and-manually-configure-your-application-and-code-sample)
3531
>
36-
> ### Option 1: Register and auto configure your app and then download your code sample
37-
>
38-
> 1. Go to the <a href="https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/applicationsListBlade/quickStartType/AspNetCoreWebAppQuickstartPage/sourceType/docs" target="_blank">Azure portal - App registrations</a> quickstart experience.
39-
> 1. Enter a name for your application and select **Register**.
40-
> 1. Follow the instructions to download and automatically configure your new application for you in one click.
41-
>
42-
> ### Option 2: Register and manually configure your application and code sample
43-
>
44-
> #### Step 1: Register your application
32+
> ## Step 1: Register your application
4533
> To register your application and add the app's registration information to your solution manually, follow these steps:
4634
>
4735
> 1. Sign in to the <a href="https://portal.azure.com/" target="_blank">Azure portal</a>.
@@ -60,15 +48,16 @@ See [How the sample works](#how-the-sample-works) for an illustration.
6048
> 1. Select **Add** and immediately record the secret's **Value** for use in a later step. The secret value is *never displayed again* and is irretrievable by any other means. Record it in a secure location as you would any password.
6149
6250
> [!div class="sxs-lookup" renderon="portal"]
63-
> #### Step 1: Configure your application in the Azure portal
51+
> ## Step 1: Configure your application in the Azure portal
52+
>
6453
> For the code sample in this quickstart to work, add a **Redirect URI** of `https://localhost:44321/signin-oidc` and **Front-channel logout URL** of `https://localhost:44321/signout-oidc` in the app registration.
6554
> > [!div renderon="portal" id="makechanges" class="nextstepaction"]
6655
> > [Make this change for me]()
6756
>
6857
> > [!div id="appconfigured" class="alert alert-info"]
6958
> > ![Already configured](media/quickstart-v2-aspnet-webapp/green-check.png) Your application is configured with these attributes.
7059
71-
#### Step 2: Download the ASP.NET Core project
60+
## Step 2: Download the ASP.NET Core project
7261

7362
> [!div renderon="docs"]
7463
> [Download the ASP.NET Core solution](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/archive/aspnetcore3-1-callsgraph.zip)
@@ -82,13 +71,15 @@ See [How the sample works](#how-the-sample-works) for an illustration.
8271
[!INCLUDE [active-directory-develop-path-length-tip](../../../includes/active-directory-develop-path-length-tip.md)]
8372

8473
> [!div class="sxs-lookup" renderon="portal"]
85-
> #### Step 3: Your app is configured and ready to run
74+
> ## Step 3: Your app is configured and ready to run
75+
>
8676
> We have configured your project with values of your app's properties and it's ready to run.
8777
> [!div class="sxs-lookup" renderon="portal"]
8878
> > [!NOTE]
8979
> > `Enter_the_Supported_Account_Info_Here`
9080
> [!div renderon="docs"]
91-
> #### Step 3: Configure your ASP.NET Core project
81+
>
82+
> ## Step 3: Configure your ASP.NET Core project
9283
> 1. Extract the .zip archive into a local folder near the root of your drive. For example, into *C:\Azure-Samples*.
9384
> 1. Open the solution in Visual Studio 2019.
9485
> 1. Open the *appsettings.json* file and modify the following:
@@ -108,7 +99,7 @@ See [How the sample works](#how-the-sample-works) for an illustration.
10899
>
109100
> For this quickstart, don't change any other values in the *appsettings.json* file.
110101
>
111-
> #### Step 4: Build and run the application
102+
> ## Step 4: Build and run the application
112103
>
113104
> Build and run the app in Visual Studio by selecting the **Debug** menu > **Start Debugging**, or by pressing the `F5` key.
114105
>

articles/active-directory/develop/scenario-spa-sign-in.md

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,14 @@ const loginRequest = {
5656
scopes: ["User.ReadWrite"]
5757
}
5858

59-
let username = "";
59+
let accountId = "";
6060

6161
const myMsal = new PublicClientApplication(config);
6262

6363
myMsal.loginPopup(loginRequest)
6464
.then(function (loginResponse) {
65-
//login success
66-
67-
// In case multiple accounts exist, you can select
68-
const currentAccounts = myMsal.getAllAccounts();
69-
70-
if (currentAccounts === null) {
71-
// no accounts detected
72-
} else if (currentAccounts.length > 1) {
73-
// Add choose account code here
74-
} else if (currentAccounts.length === 1) {
75-
username = currentAccounts[0].username;
76-
}
77-
65+
accountId = loginResponse.account.homeAccountId;
66+
// Display signed-in user content, call API, etc.
7867
}).catch(function (error) {
7968
//login failure
8069
console.log(error);
@@ -303,28 +292,30 @@ const loginRequest = {
303292
scopes: ["User.ReadWrite"]
304293
}
305294

306-
let username = "";
295+
let accountId = "";
307296

308297
const myMsal = new PublicClientApplication(config);
309298

310299
function handleResponse(response) {
311-
//handle redirect response
312-
313-
// In case multiple accounts exist, you can select
314-
const currentAccounts = myMsal.getAllAccounts();
315-
316-
if (currentAccounts === null) {
317-
// no accounts detected
318-
} else if (currentAccounts.length > 1) {
319-
// Add choose account code here
320-
} else if (currentAccounts.length === 1) {
321-
username = currentAccounts[0].username;
300+
if (response !== null) {
301+
accountId = response.account.homeAccountId;
302+
// Display signed-in user content, call API, etc.
303+
} else {
304+
// In case multiple accounts exist, you can select
305+
const currentAccounts = myMsal.getAllAccounts();
306+
307+
if (currentAccounts.length === 0) {
308+
// no accounts signed-in, attempt to sign a user in
309+
myMsal.loginRedirect(loginRequest);
310+
} else if (currentAccounts.length > 1) {
311+
// Add choose account code here
312+
} else if (currentAccounts.length === 1) {
313+
accountId = currentAccounts[0].homeAccountId;
314+
}
322315
}
323316
}
324317

325318
myMsal.handleRedirectPromise().then(handleResponse);
326-
327-
myMsal.loginRedirect(loginRequest);
328319
```
329320

330321
# [JavaScript (MSAL.js v1)](#tab/javascript1)

articles/active-directory/privileged-identity-management/TOC.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
- name: Email notifications
2020
href: pim-email-notifications.md
2121
- name: PIM API concepts
22-
href: pim-apis-concept.md
23-
- name: Microsoft Graph API and PIM
24-
href: pim-apis.md
22+
href: pim-apis.md
23+
2524
- name: How-to guides
2625
expanded: true
2726
items:

articles/active-directory/privileged-identity-management/pim-apis-concept.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)