You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory/develop/scenario-web-app-sign-user-app-registration.md
+66-9Lines changed: 66 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.service: active-directory
9
9
ms.subservice: develop
10
10
ms.topic: conceptual
11
11
ms.workload: identity
12
-
ms.date: 07/14/2020
12
+
ms.date: 12/6/2022
13
13
ms.author: jmprieur
14
14
ms.custom: aaddev
15
15
#Customer intent: As an application developer, I want to know how to write a web app that signs in users by using the Microsoft identity platform.
@@ -89,7 +89,7 @@ By default, the sample uses:
89
89
1. Enter a key description.
90
90
1. Select the key duration **In 1 year**.
91
91
1. Select **Add**.
92
-
1. When the key value appears, copy it for later. This value will not be displayed again or be retrievable by any other means.
92
+
1. When the key value appears, copy it for later. This value won't be displayed again or be retrievable by any other means.
93
93
94
94
# [Node.js](#tab/nodejs)
95
95
@@ -124,13 +124,70 @@ By default, the sample uses:
124
124
125
125
## Register an app by using PowerShell
126
126
127
-
> [!NOTE]
128
-
> Currently, Azure AD PowerShell creates applications with only the following supported account types:
129
-
>
130
-
> - MyOrg (accounts in this organizational directory only)
131
-
> - AnyOrg (accounts in any organizational directory)
132
-
>
133
-
> You can create an application that signs in users with their personal Microsoft accounts (for example, Skype, Xbox, or Outlook.com). First, create a multitenant application. Supported account types are accounts in any organizational directory. Then, change the [`accessTokenAcceptedVersion`](./reference-app-manifest.md#accesstokenacceptedversion-attribute) property to **2** and the [`signInAudience`](./reference-app-manifest.md#signinaudience-attribute) property to `AzureADandPersonalMicrosoftAccount` in the [application manifest](./reference-app-manifest.md) from the Azure portal. For more information, see [step 1.3](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/1-WebApp-OIDC/1-3-AnyOrgOrPersonal#step-1-register-the-sample-with-your-azure-ad-tenant) in the ASP.NET Core tutorial. You can generalize this step to web apps in any language.
127
+
You can also register an application with Microsoft Graph PowerShell, using the [New-MgApplication](/powershell/module/microsoft.graph.applications/new-mgapplication).
128
+
129
+
Here's an idea of the code. For a fully functioning code, see [this sample](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/blob/master/1-WebApp-OIDC/1-3-AnyOrgOrPersonal/AppCreationScripts/Configure.ps1)
130
+
131
+
```PowerShell
132
+
# Connect to the Microsoft Graph API, non-interactive is not supported for the moment (Oct 2021)
0 commit comments