Skip to content

Commit 9570f74

Browse files
Minor edits
1 parent 36bc7b3 commit 9570f74

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

4-WebApp-your-API/4-3-AnyOrg/AppCreationScripts/AppCreationScripts.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Registering the sample apps with Microsoft identity platform and updating the configuration files using PowerShell scripts
1+
# Registering the sample apps with Microsoft identity platform and updating the configuration files using PowerShell
2+
scripts
23

34
## Overview
45

4-WebApp-your-API/4-3-AnyOrg/AppCreationScripts/Configure.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ Function ConfigureApplications
241241
-AvailableToOtherTenants $True `
242242
-PasswordCredentials $key `
243243
-PublicClient $False
244+
244245
$serviceIdentifierUri = 'api://'+$serviceAadApplication.AppId
245246
Set-AzureADApplication -ObjectId $serviceAadApplication.ObjectId -IdentifierUris $serviceIdentifierUri
246247

@@ -321,7 +322,6 @@ Function ConfigureApplications
321322
-IdentifierUris "https://$tenantName/WebApp-MultiTenant-v2" `
322323
-AvailableToOtherTenants $True `
323324
-PasswordCredentials $key `
324-
-Oauth2AllowImplicitFlow $true `
325325
-PublicClient $False
326326

327327
# create the service principal of the newly created application
@@ -374,14 +374,12 @@ Function ConfigureApplications
374374
# Update config file for 'client'
375375
$configFile = $pwd.Path + "\..\ToDoListClient\appsettings.json"
376376
Write-Host "Updating the sample code ($configFile)"
377-
$dictionary = @{ "ClientId" = $clientAadApplication.AppId;"TenantId" = 'common';"Domain" = $tenantName;"ClientSecret" = $clientAppKey;"RedirectUri" = $clientAadApplication.HomePage;"TodoListScope" = ("api://"+$serviceAadApplication.AppId+"/.default");"TodoListAppId" = $serviceAadApplication.AppId;"TodoListBaseAddress" = $serviceAadApplication.HomePage;"AdminConsentRedirectApi" = $serviceAadApplication.ReplyUrls };
378-
UpdateTextFile -configFilePath $configFile -dictionary $dictionary
379377
Write-Host ""
380378
Write-Host -ForegroundColor Green "------------------------------------------------------------------------------------------------"
381379
Write-Host "IMPORTANT: Please follow the instructions below to complete a few manual step(s) in the Azure portal":
382380
Write-Host "- For 'client'"
383381
Write-Host " - Navigate to '$clientPortalUrl'"
384-
Write-Host " - [Optional] If you are a tenant admin, you can navigate to the API Permisions page and select 'Grant admin consent for (your tenant)'" -ForegroundColor Red
382+
Write-Host " - [Optional] If you are a tenant admin, you can navigate to the API Permissions page and select 'Grant admin consent for (your tenant)'" -ForegroundColor Red
385383

386384
Write-Host -ForegroundColor Green "------------------------------------------------------------------------------------------------"
387385

0 commit comments

Comments
 (0)