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: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ products:
6
6
- nodejs
7
7
- ms-graph
8
8
- azure-active-directory
9
-
description: "Demonstrates how to use MSAL Node to acquire an access token for a protected resource such as Microsoft Graph in a console application using the application's own identity (client credentials flow)."
9
+
description: "Demonstrates how to use MSAL Node to acquire an access token for a protected resource such as Microsoft Graph in a console application using the application's own identity (client credentials flow)"
# A Node.js console application secured by MSAL Node (Preview) on Microsoft identity platform
14
14
15
-
This sample demonstrates how to use [MSAL Node (Preview)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node) to acquire an access token for a protected resource such as Microsoft Graph in a console application using the application's own identity ([client credentials flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow)).
15
+
This sample demonstrates how to use [MSAL Node (Preview)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node) to acquire an access token for a protected resource such as Microsoft Graph in a console application using the application's own identity with the ([client credentials flow](https://docs.microsoft.com/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow)).
16
16
17
17
## Features
18
18
@@ -42,15 +42,15 @@ This sample demonstrates the following **MSAL Node** concepts:
42
42
### Setup
43
43
44
44
1.[Register a new application](https://docs.microsoft.com/azure/active-directory/develop/scenario-daemon-app-registration) in the [Azure Portal](https://portal.azure.com).
45
-
1. For API Permissions, select `User.Read.All` under **Microsoft APIs** > **Microsoft Graph** > **Delegated Permissions**.
46
-
2.Ensure that you have obtained **admin consent** for API permissions.
45
+
1. For API Permissions, select `User.Read.All` under **Microsoft APIs** > **Microsoft Graph** > **Application Permissions**.
46
+
2.Select **Grant admin consent for {tenant}**.
47
47
1. Clone this repository `git clone https://github.com/Azure-Samples/ms-identity-javascript-nodejs-console.git`
48
48
1. Open the [.env](.env) file and provide the required configuration values.
49
-
1. Replace the string `Enter_the_Application_Id_Here` with your app/client ID on Azure AD portal.
50
49
1. Replace the string `Enter_the_Tenant_Id_Here` with your tenant ID on Azure AD portal.
51
-
1. Replace the string `Enter_the_Client_Secret_Here` with the client secret you created on Azure AD portal.
52
-
1. Replace the string `Enter_the_Cloud_Instance_Id_Here` with `https://login.microsoftonline.com/` (see **note** below).
53
-
1. Replace the string `Enter_the_Graph_Endpoint_Here`. with `https://graph.microsoft.com/` (see **note** below).
50
+
2. Replace the string `Enter_the_Application_Id_Here` with your app/client ID on Azure AD portal.
51
+
3. Replace the string `Enter_the_Client_Secret_Here` with the client secret you created on Azure AD portal.
52
+
4. Replace the string `Enter_the_Cloud_Instance_Id_Here` with `https://login.microsoftonline.com/` (see **note** below).
53
+
5. Replace the string `Enter_the_Graph_Endpoint_Here`. with `https://graph.microsoft.com/` (see **note** below).
54
54
55
55
> :information_source:*note*: This is for multi-tenant applications located on the global Azure cloud. For more information, see: [Use MSAL in a national cloud environment](https://docs.microsoft.com/azure/active-directory/develop/quickstart-v2-javascript-auth-code)
0 commit comments