Skip to content

Commit 7822cb0

Browse files
author
Kalyan Krishna
committed
bug fixed
1 parent 7c7ab8a commit 7822cb0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

AppCreationScripts/Configure.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,14 @@ Function ConfigureApplications
201201
# Update config file for 'service'
202202
$configFile = $pwd.Path + "\..\TodoListService-ManualJwt\Web.Config"
203203
Write-Host "Updating the sample code ($configFile)"
204-
ReplaceSetting -configFilePath $configFile -key "ida:Tenant" -newValue $tenantName
204+
ReplaceSetting -configFilePath $configFile -key "ida:TenantId" -newValue $tenantId
205205
ReplaceSetting -configFilePath $configFile -key "ida:Audience" -newValue $serviceIdentifierUri
206206
ReplaceSetting -configFilePath $configFile -key "ida:ClientId" -newValue $serviceAadApplication.AppId
207207

208208
# Update config file for 'client'
209209
$configFile = $pwd.Path + "\..\TodoListClient\App.Config"
210210
Write-Host "Updating the sample code ($configFile)"
211-
ReplaceSetting -configFilePath $configFile -key "ida:TenantId" -newValue $tenantId
211+
ReplaceSetting -configFilePath $configFile -key "ida:Tenant" -newValue $tenantName
212212
ReplaceSetting -configFilePath $configFile -key "ida:ClientId" -newValue $clientAadApplication.AppId
213213
ReplaceSetting -configFilePath $configFile -key "todo:TodoListResourceId" -newValue $serviceIdentifierUri
214214
ReplaceSetting -configFilePath $configFile -key "todo:TodoListBaseAddress" -newValue $serviceAadApplication.HomePage

AppCreationScripts/sample.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
"SettingFile": "\\..\\TodoListService-ManualJwt\\Web.Config",
5050
"Mappings": [
5151
{
52-
"key": "ida:Tenant",
53-
"value": "$tenantName"
52+
"key": "ida:TenantId",
53+
"value": "$tenantId"
5454
},
5555
{
5656
"key": "ida:Audience",
@@ -69,8 +69,8 @@
6969
"SettingFile": "\\..\\TodoListClient\\App.Config",
7070
"Mappings": [
7171
{
72-
"key": "ida:TenantId",
73-
"value": "$tenantId"
72+
"key": "ida:Tenant",
73+
"value": "$tenantName"
7474
},
7575
{
7676
"key": "ida:ClientId",

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ Open the solution in Visual Studio to configure the projects
192192
> Note: if you used the setup scripts, the changes below will have been applied for you
193193
194194
1. Open the `TodoListService-ManualJwt\Web.Config` file
195-
1. Find the app key `ida:Tenant` and replace the existing value with your Azure AD tenant name.
196-
1. Find the app key `ida:Audience` and replace the existing value with the App ID URI noted earlier ('api://{clientId}).
195+
1. Find the app key `ida:TenantId` and replace the existing value with your Azure AD tenant ID.
196+
1. Find the app key `ida:Audience` and replace the existing value with the AppID URI of the service, like api://{clientId}, for example **api://821f07ea-31b2-4a15-a154-847edf508749**.
197197
1. Find the app key `ida:ClientId` and replace the existing value with the application ID (clientId) of the `TodoListService-ManualJwt` application copied from the Azure portal.
198198

199199
#### Configure the client project
@@ -203,7 +203,7 @@ Open the solution in Visual Studio to configure the projects
203203
1. Open the `TodoListClient\App.Config` file
204204
1. Find the app key `ida:Tenant` and replace the existing value with your Azure AD tenant name.
205205
1. Find the app key `ida:ClientId` and replace the existing value with the application ID (clientId) of the `TodoListClient-ManualJwt` application copied from the Azure portal.
206-
1. Find the app key `todo:TodoListResourceId` and replace the existing value with the App ID URI noted earlier ('api://{clientId})
206+
1. Find the app key `todo:TodoListResourceId` and replace the existing value with the AppID URI of the service, like api://{clientId}, for example **api://821f07ea-31b2-4a15-a154-847edf508749**.
207207
1. Find the app key `todo:TodoListBaseAddress` and replace the existing value with the base address of the TodoListService-ManualJwt project (by default `https://localhost:44324`).
208208

209209
### Step 4: Run the sample

0 commit comments

Comments
 (0)