Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions 1-Authentication/0-sign-in-vanillajs/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\.vscode\\vsCodeLaunchVanillaJsSample.js",
"args": [
"${input:taskDelay}"
]
}
],
"inputs": [
{
"id": "taskDelay",
"type": "command",
"command": "ms-entra:getScenarioEndTime",
"args": "UserFlowDelay"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const {exec} = require('child_process');
const path = require("path");

const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now());


setTimeout(() => {
console.log("Running Vanilla JS Sample...");

exec('npm install && npm run start', {cwd: path.resolve('.\\App')}, (err, output) => {
// once the command has completed, the callback function is called
if (err) {
// log and return if we encounter an error
console.error("Error on running commands: ", err)
return
}
// log the output received from the command
console.log("Output: \n", output)
})
}, startDelay
)
33 changes: 20 additions & 13 deletions 1-Authentication/1-sign-in-react/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\.vscode\\vsCodeLaunchReactSample.js"
}
]
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\.vscode\\vsCodeLaunchReactSample.js",
"args": [
"${input:taskDelay}"
]
}
],
"inputs": [
{
"id": "taskDelay",
"type": "command",
"command": "ms-entra:getScenarioEndTime",
"args": "UserFlowDelay"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
const {exec} = require('child_process');
const path = require("path");
exec('npm install && npm start',{cwd:path.resolve('.\\SPA')}, (err, output) => {

const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now());

setTimeout(() => {
console.log("Running React Sample...");

exec('npm install && npm start', {cwd: path.resolve('.\\SPA')}, (err, output) => {
// once the command has completed, the callback function is called
if (err) {
// log and return if we encounter an error
console.error("Error on running commands: ", err)
return
// log and return if we encounter an error
console.error("Error on running commands: ", err)
return
}
// log the output received from the command
console.log("Output: \n", output)
})
})
}, startDelay)
28 changes: 18 additions & 10 deletions 1-Authentication/2-sign-in-angular/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\.vscode\\vsCodeLaunchAngularSample.js"
}
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\.vscode\\vsCodeLaunchAngularSample.js",
"args": [
"${input:taskDelay}"
]
}
],
"inputs": [
{
"id": "taskDelay",
"type": "command",
"command": "ms-entra:getScenarioEndTime",
"args": "UserFlowDelay"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
const {exec} = require('child_process');
const path = require("path");
exec('npm install && npm start',{cwd:path.resolve('.\\SPA')}, (err, output) => {

const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now());

setTimeout(() => {
console.log("Running Angular JS Sample...");
exec('npm install && npm start', {cwd: path.resolve('.\\SPA')}, (err, output) => {
// once the command has completed, the callback function is called
if (err) {
// log and return if we encounter an error
console.error("Error on running commands: ", err)
return
// log and return if we encounter an error
console.error("Error on running commands: ", err)
return
}
// log the output received from the command
console.log("Output: \n", output)
})
})
}, startDelay)
18 changes: 13 additions & 5 deletions 1-Authentication/6-sign-in-node-cli-app/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}\\.vscode\\vsCodeLaunchNodeSample.js"
"program": "${workspaceFolder}\\.vscode\\vsCodeLaunchNodeSample.js",
"args": [
"${input:taskDelay}"
]
}
],
"inputs": [
{
"id": "taskDelay",
"type": "command",
"command": "ms-entra:getScenarioEndTime",
"args": "UserFlowDelay"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
const {exec} = require('child_process');
const path = require("path");
exec('npm install && npm start',{cwd:path.resolve('.\\App')}, (err, output) => {

const startDelay = Math.max(0, Number(process.argv[2] || 0) - Date.now());

setTimeout(() => {
console.log("Running Node Sample...");
exec('npm install && npm start', {cwd: path.resolve('.\\App')}, (err, output) => {
// once the command has completed, the callback function is called
if (err) {
// log and return if we encounter an error
console.error("Error on running commands: ", err)
return
// log and return if we encounter an error
console.error("Error on running commands: ", err)
return
}
// log the output received from the command
console.log("Output: \n", output)
})
})
}, startDelay);