Skip to content

Commit e3ada1c

Browse files
author
Kalyan Krishna
committed
merged
2 parents fca9b59 + 71d8b5e commit e3ada1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

AppCreationScripts/Configure.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ Function ConfigureApplications
181181
Set-AzureADApplication -ObjectId $clientAadApplication.ObjectId -RequiredResourceAccess $requiredResourcesAccess
182182
Write-Host "Granted."
183183

184+
# Configure known client applications for service
185+
Write-Host "Configure known client applications for the 'service'"
186+
$knowApplications = New-Object System.Collections.Generic.List[System.String]
187+
$knowApplications.Add($clientAadApplication.AppId)
188+
Set-AzureADApplication -ObjectId $serviceAadApplication.ObjectId -KnownClientApplications $knowApplications
189+
Write-Host "Configured."
190+
191+
184192
# Update config file for 'service'
185193
$configFile = $pwd.Path + "\..\TodoListService-ManualJwt\Web.Config"
186194
Write-Host "Updating the sample code ($configFile)"

0 commit comments

Comments
 (0)