Skip to content

Commit 93bd815

Browse files
author
Victor Viriya-ampanond
committed
Upgrade MSAL and packages
1 parent 904f51a commit 93bd815

File tree

6 files changed

+511
-959
lines changed

6 files changed

+511
-959
lines changed

scripts/run-local.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ $ErrorActionPreference = 'Stop'
55

66
try {
77
# Install lightweight HTTP server for local hosting of SPA
8-
npm install http-server -g
9-
8+
# npm install -g @azure/static-web-apps-cli
9+
1010
# cd /dotnet
1111
Push-Location ( Join-Path $PSScriptRoot ../dotnet ) -StackName scripts
1212

1313
# Build and host SPA at http://127.0.0.1:8080/
14-
Start-Process pwsh { -c cd ../web/serverless-microservices-web && npm install && npm run build && copy ../../test/settings.example.js dist/js/settings.js && cd dist && http-server }
14+
Start-Process pwsh { -c cd ../web/serverless-microservices-web && npm install && npm run build && copy ../../test/settings.example.js dist/js/settings.js && cd dist && swa start }
1515

1616
# Build and start Trip Archiver Nodejs Function
1717
Start-Process pwsh { -c cd ../nodejs/serverless-microservices-functionapp-triparchiver && npm install && npm run pack && func start --javascript -p 7075 }
@@ -32,8 +32,9 @@ try {
3232
# Build and start Orchestrators Function
3333
Start-Process pwsh { -c cd ServerlessMicroservices.FunctionApp.Orchestrators && func start --csharp -p 7074 }
3434

35+
Start-Sleep -Seconds 90
3536
# Open the browser
36-
start 'http://127.0.0.1:8080/'
37+
start 'http://localhost:4280/'
3738

3839
}
3940
finally {

test/settings.example.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// Auth
2-
window.authClientId = '';
3-
window.authAuthority = '';
4-
window.authScopes = [''];
5-
window.authEnabled = false;
2+
window.authClientId = 'a298b04d-dbe2-4fc8-8191-b64c1fd287e2';
3+
window.authAuthority = 'https://wviriyab2c.b2clogin.com/wviriyab2c.onmicrosoft.com/B2C_1_default-signin';
4+
window.knownAuthority = 'wviriyab2c.b2clogin.com';
5+
window.redirectUri = 'http://localhost:4280';
6+
window.loginScopes = ['openid','https://wviriyab2c.onmicrosoft.com/3ebcd877-a9a5-4d12-9ac8-2c66a925bd77/rideshare'];
7+
window.apiScopes = ['https://wviriyab2c.onmicrosoft.com/3ebcd877-a9a5-4d12-9ac8-2c66a925bd77/rideshare'];
8+
window.authEnabled = true;
9+
610

711
// API endpoints
812
window.apiKey = '';
913
window.apiBaseUrl = '';
10-
window.apiDriversBaseUrl = `http://localhost:7071/api`;
11-
window.apiTripsBaseUrl = `http://localhost:7072/api`;
12-
window.apiPassengersBaseUrl = `http://localhost:7073/api`;
13-
window.signalrInfoUrl = '';
14+
window.apiDriversBaseUrl = 'http://localhost:7071/api';
15+
window.apiTripsBaseUrl = 'http://localhost:7072/api';
16+
window.apiPassengersBaseUrl = 'http://localhost:7073/api';
17+
window.signalrInfoUrl = 'http://localhost:7072/api/';

0 commit comments

Comments
 (0)