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
To start your quickstart application, use either of the following options.
36
+
### Step 1: Register your application
37
37
38
-
### Option 1 (Express): Register and auto configure your app and then download your code sample
39
-
40
-
1. Go to the [Azure portal - App registrations](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade/quickStartType/AngularSpaQuickstartPage/sourceType/docs) quickstart experience.
41
-
1. Enter a name for your application.
42
-
1. Under **Supported account types**, select **Accounts in any organizational directory and personal Microsoft accounts**.
43
-
1. Select **Register**.
44
-
1. Go to the quickstart pane and follow the instructions to download and automatically configure your new application.
45
-
46
-
### Option 2 (Manual): Register and manually configure your application and code sample
47
-
48
-
#### Step 1: Register your application
49
-
50
-
1. Sign in to the [Azure portal](https://portal.azure.com/).
51
-
1. If you have access to multiple tenants, use the **Directories + subscriptions** filter :::image type="icon" source="media/common/portal-directory-subscription-filter.png" border="false"::: in the top menu to switch to the tenant in which you want to register the application.
52
-
1. Search for and select **Azure Active Directory**.
53
-
1. Under **Manage**, select **App registrations** > **New registration**.
38
+
1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) as at least an [Application Developer](../roles/permissions-reference.md#application-developer).
39
+
1. If access to multiple tenants is available, use the **Directories + subscriptions** filter :::image type="icon" source="media/common/portal-directory-subscription-filter.png" border="false"::: in the top menu to switch to the tenant in which you want to register the application.
40
+
1. Browse to **Identity** > **Applications** > **Application registrations**.
41
+
1. Select **New registration**.
54
42
1. Enter a **Name** for your application. Users of your app might see this name, and you can change it later.
55
43
1. Under **Supported account types**, select **Accounts in any organizational directory and personal Microsoft accounts**.
56
44
1. Select **Register**. On the app **Overview** page, note the **Application (client) ID** value for later use.
@@ -59,12 +47,11 @@ To start your quickstart application, use either of the following options.
59
47
1. Set the **Redirect URI** value to `http://localhost:3000/`.
60
48
1. Select **Configure**.
61
49
62
-
####Step 2: Download the project
50
+
### Step 2: Download the project
63
51
64
52
To run the project with a web server by using Node.js, [download the core project files](https://github.com/Azure-Samples/ms-identity-javascript-v2/archive/master.zip).
65
53
66
-
67
-
#### Step 3: Configure your JavaScript app
54
+
### Step 3: Configure your JavaScript app
68
55
69
56
In the *app* folder, open the *authConfig.js* file, and then update the `clientID`, `authority`, and `redirectUri` values in the `msalConfig` object.
70
57
@@ -87,17 +74,17 @@ Modify the values in the `msalConfig` section:
87
74
88
75
-`Enter_the_Application_Id_Here` is the **Application (client) ID** for the application you registered.
89
76
90
-
To find the value of **Application (client) ID**, go to the app registration's **Overview** page in the Azure portal.
77
+
To find the value of **Application (client) ID**, go to the app registration's **Overview** page.
91
78
-`Enter_the_Cloud_Instance_Id_Here` is the Azure cloud instance. For the main or global Azure cloud, enter `https://login.microsoftonline.com`. For **national** clouds (for example, China), see [National clouds](authentication-national-cloud.md).
92
79
-`Enter_the_Tenant_info_here` is one of the following:
93
80
- If your application supports *accounts in this organizational directory*, replace this value with the **Tenant ID** or **Tenant name**. For example, `contoso.microsoft.com`.
94
81
95
-
To find the value of the **Directory (tenant) ID**, go to the app registration's **Overview** page in the Azure portal.
82
+
To find the value of the **Directory (tenant) ID**, go to the app registration's **Overview** page.
96
83
- If your application supports *accounts in any organizational directory*, replace this value with `organizations`.
97
84
- If your application supports *accounts in any organizational directory and personal Microsoft accounts*, replace this value with `common`. **For this quickstart**, use `common`.
98
85
- To restrict support to *personal Microsoft accounts only*, replace this value with `consumers`.
99
86
100
-
To find the value of **Supported account types**, go to the app registration's **Overview** page in the Azure portal.
87
+
To find the value of **Supported account types**, go to the app registration's **Overview** page.
101
88
-`Enter_the_Redirect_Uri_Here` is `http://localhost:3000/`.
102
89
103
90
The `authority` value in your *authConfig.js* should be similar to the following if you're using the main (global) Azure cloud:
0 commit comments