Skip to content

Commit b77e804

Browse files
authored
Merge pull request #57 from Azure-Samples/add-qs-metadata
Add metadata for quickstart
2 parents ccd21e1 + e1174c9 commit b77e804

4 files changed

Lines changed: 150 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"Sample": {
3+
"Title": "A Node.js browserless application using MSAL Node to authenticate users against Azure AD for Customers",
4+
"Client": "NodeBrowserlessApp",
5+
"Level": 100
6+
},
7+
"AppRegistrations": [
8+
{
9+
"x-ms-id": "ciam-node-device",
10+
"x-ms-name": "ms-identity-ciam-node-device",
11+
"x-ms-version": "2.0",
12+
"replyUrlsWithType": [],
13+
"allowPublicClient": true,
14+
"requiredResourceAccess": [
15+
{
16+
"x-ms-resourceAppName": "Microsoft Graph",
17+
"resourceAppId": "00000003-0000-0000-c000-000000000000",
18+
"resourceAccess": [
19+
{
20+
"id": "37f7f235-527c-4136-accd-4a02d197296e",
21+
"type": "Scope",
22+
"x-ms-name": "openid"
23+
},
24+
{
25+
"id": "7427e0e9-2fba-42fe-b0c0-848c9e6a8182",
26+
"type": "Scope",
27+
"x-ms-name": "offline_access"
28+
}
29+
]
30+
}
31+
],
32+
"codeConfigurations": [
33+
{
34+
"settingFile": "/App/authConfig.js",
35+
"replaceTokens": {
36+
"appId": "Enter_the_Application_Id_Here",
37+
"tenantName": "Enter_the_Tenant_Subdomain_Here"
38+
}
39+
}
40+
]
41+
}
42+
]
43+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Portal quickstart for Node.js browserless app"
3+
description: Learn how to run a sample Node.js browserless application to sign in users via device code flow
4+
services: active-directory
5+
author: kengaderdus
6+
manager: mwongerapk
7+
ms.author: kengaderdus
8+
ms.service: active-directory
9+
ms.workload: identity
10+
ROBOTS: NOINDEX
11+
ms.subservice: ciam
12+
ms.topic: portal
13+
ms.date: 04/19/2023
14+
---
15+
# Portal quickstart for Node.js browserless app
16+
17+
> In this quickstart, you download and run a code sample that demonstrates how a Node.js browserless app can sign in users via the device code flow with Azure AD for Customers.
18+
>
19+
> [!div renderon="portal" id="display-on-portal" class="sxs-lookup"]
20+
>
21+
> 1. Make sure you've installed [Node.js](https://nodejs.org/download/).
22+
> 1. Unzip the sample.
23+
> 1. Locate the sample folder in your terminal, then run the following commands:
24+
>
25+
> ```console
26+
> cd App && npm install && npm start
27+
> ```
28+
>
29+
> 1. Wait for the app to start, then follow the link in the console to sign-in.
30+
>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"Sample": {
3+
"Title": "A Node.js console application using MSAL Node to authenticate users against Azure AD for Customers",
4+
"Client": "NodeConsoleApp",
5+
"Level": 100
6+
},
7+
"AppRegistrations": [
8+
{
9+
"x-ms-id": "ciam-node-cli",
10+
"x-ms-name": "ms-identity-ciam-node-cli",
11+
"x-ms-version": "2.0",
12+
"replyUrlsWithType": [
13+
{
14+
"url": "http://localhost",
15+
"type": "InstalledClient"
16+
}
17+
],
18+
"requiredResourceAccess": [
19+
{
20+
"x-ms-resourceAppName": "Microsoft Graph",
21+
"resourceAppId": "00000003-0000-0000-c000-000000000000",
22+
"resourceAccess": [
23+
{
24+
"id": "37f7f235-527c-4136-accd-4a02d197296e",
25+
"type": "Scope",
26+
"x-ms-name": "openid"
27+
},
28+
{
29+
"id": "7427e0e9-2fba-42fe-b0c0-848c9e6a8182",
30+
"type": "Scope",
31+
"x-ms-name": "offline_access"
32+
}
33+
]
34+
}
35+
],
36+
"codeConfigurations": [
37+
{
38+
"settingFile": "/App/authConfig.js",
39+
"replaceTokens": {
40+
"appId": "Enter_the_Application_Id_Here",
41+
"tenantName": "Enter_the_Tenant_Subdomain_Here"
42+
}
43+
}
44+
]
45+
}
46+
]
47+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Portal quickstart for Node.js console app"
3+
description: Learn how to run a sample Node.js console (cli) application to sign in users
4+
services: active-directory
5+
author: kengaderdus
6+
manager: mwongerapk
7+
ms.author: kengaderdus
8+
ms.service: active-directory
9+
ms.workload: identity
10+
ROBOTS: NOINDEX
11+
ms.subservice: ciam
12+
ms.topic: portal
13+
ms.date: 04/19/2023
14+
---
15+
# Portal quickstart for Node.js console app
16+
17+
> In this quickstart, you download and run a code sample that demonstrates how a Node.js console (cli) app can sign in users with Azure AD for Customers.
18+
>
19+
> [!div renderon="portal" id="display-on-portal" class="sxs-lookup"]
20+
>
21+
> 1. Make sure you've installed [Node.js](https://nodejs.org/download/).
22+
> 1. Unzip the sample.
23+
> 1. Locate the sample folder in your terminal, then run the following commands:
24+
>
25+
> ```console
26+
> cd App && npm install && npm start
27+
> ```
28+
>
29+
> 1. Wait for the app to launch a browser window, then follow the prompts.
30+
>

0 commit comments

Comments
 (0)