Skip to content

Commit a003596

Browse files
committed
review changes
1 parent c611969 commit a003596

File tree

8 files changed

+167
-149
lines changed

8 files changed

+167
-149
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
- [ ] 2-1) Acquire a Token and call Microsoft Graph
1515
- [ ] 3-1) Protect and call a web API on Azure AD
1616
- [ ] 3-2) Protect and call a web API on Azure AD B2C
17-
- [ ] 4) Call a web API that calls Microsoft Graph on-behalf-of User
17+
- [ ] 4-1) Call a web API that calls Microsoft Graph on-behalf-of user
18+
- [ ] 4-2) Call a web API that calls another web API on-behalf-of user
1819
- [ ] 5) Deploy to Azure Storage and App Service
1920
```
2021

2-Authorization-I/1-call-graph/App/authConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
*/
66
const msalConfig = {
77
auth: {
8-
clientId: "955e84b4-947a-48dd-9661-668475d94dc6", // This is the ONLY mandatory field that you need to supply.
9-
authority: "https://login.microsoftonline.com/cbaf2168-de14-4c72-9d88-f5f05366dbef", // Defaults to "https://login.microsoftonline.com/common"
10-
redirectUri: "http://localhost:3000", // You must register this URI on Azure Portal/App Registration. Defaults to window.location.href
8+
clientId: "Enter_the_Application_Id_Here", // This is the ONLY mandatory field that you need to supply.
9+
authority: "Enter_the_Cloud_Instance_Id_Here/Enter_the_Tenant_Info_Here", // Defaults to "https://login.microsoftonline.com/common"
10+
redirectUri: "Enter_the_Redirect_Uri_Here", // You must register this URI on Azure Portal/App Registration. Defaults to window.location.href
1111
},
1212
cache: {
1313
cacheLocation: "localStorage", // This configures where your cache will be stored

4-AdvancedGrants/2-call-api-api-ca/AppCreationScripts/Cleanup.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ Function Cleanup
5959
# Removes the applications
6060
Write-Host "Cleaning-up applications from tenant '$tenantName'"
6161

62-
Write-Host "Removing 'service1' (ms-identity-javascript-tutorial-c4s1-api1) if needed"
63-
Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api1'" | ForEach-Object {Remove-AzureADApplication -ObjectId $_.ObjectId }
64-
$apps = Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api1'"
62+
Write-Host "Removing 'DownstreamAPI' (ms-identity-javascript-tutorial-c4s2-downstream) if needed"
63+
Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s2-downstream'" | ForEach-Object {Remove-AzureADApplication -ObjectId $_.ObjectId }
64+
$apps = Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s2-downstream'"
6565
if ($apps)
6666
{
6767
Remove-AzureADApplication -ObjectId $apps.ObjectId
@@ -70,14 +70,14 @@ Function Cleanup
7070
foreach ($app in $apps)
7171
{
7272
Remove-AzureADApplication -ObjectId $app.ObjectId
73-
Write-Host "Removed ms-identity-javascript-tutorial-c4s1-api1.."
73+
Write-Host "Removed ms-identity-javascript-tutorial-c4s2-downstream.."
7474
}
7575
# also remove service principals of this app
76-
Get-AzureADServicePrincipal -filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api1'" | ForEach-Object {Remove-AzureADServicePrincipal -ObjectId $_.Id -Confirm:$false}
76+
Get-AzureADServicePrincipal -filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s2-downstream'" | ForEach-Object {Remove-AzureADServicePrincipal -ObjectId $_.Id -Confirm:$false}
7777

78-
Write-Host "Removing 'service2' (ms-identity-javascript-tutorial-c4s1-api2) if needed"
79-
Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api2'" | ForEach-Object {Remove-AzureADApplication -ObjectId $_.ObjectId }
80-
$apps = Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api2'"
78+
Write-Host "Removing 'MiddletierAPI' (ms-identity-javascript-tutorial-c4s2-middletier) if needed"
79+
Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s2-middletier'" | ForEach-Object {Remove-AzureADApplication -ObjectId $_.ObjectId }
80+
$apps = Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s2-middletier'"
8181
if ($apps)
8282
{
8383
Remove-AzureADApplication -ObjectId $apps.ObjectId
@@ -86,10 +86,10 @@ Function Cleanup
8686
foreach ($app in $apps)
8787
{
8888
Remove-AzureADApplication -ObjectId $app.ObjectId
89-
Write-Host "Removed ms-identity-javascript-tutorial-c4s1-api2.."
89+
Write-Host "Removed ms-identity-javascript-tutorial-c4s2-middletier.."
9090
}
9191
# also remove service principals of this app
92-
Get-AzureADServicePrincipal -filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s1-api2'" | ForEach-Object {Remove-AzureADServicePrincipal -ObjectId $_.Id -Confirm:$false}
92+
Get-AzureADServicePrincipal -filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s2-middletier'" | ForEach-Object {Remove-AzureADServicePrincipal -ObjectId $_.Id -Confirm:$false}
9393

9494
Write-Host "Removing 'spa' (ms-identity-javascript-tutorial-c4s1-spa) if needed"
9595
Get-AzureADApplication -Filter "DisplayName eq 'ms-identity-javascript-tutorial-c4s1-spa'" | ForEach-Object {Remove-AzureADApplication -ObjectId $_.ObjectId }

0 commit comments

Comments
 (0)