Skip to content

Commit e0279ba

Browse files
authored
Merge pull request Azure-Samples#221 from Azure-Samples/jennyf/1.24
update Id web & MSAL
2 parents b937e67 + 6381d19 commit e0279ba

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

1. Desktop app calls Web API/TodoListService/TodoListService.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.Identity.Web" Version="1.22.3" />
10+
<PackageReference Include="Microsoft.Identity.Web" Version="1.24.0" />
1111
</ItemGroup>
1212
</Project>

2. Web API now calls Microsoft Graph/TodoListClient/MainWindow.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ private async Task HandleChallengeFromWebApi(HttpResponseMessage response, IAcco
178178
{
179179
WwwAuthenticateParameters wwwAuthenticateParameters = WwwAuthenticateParameters.CreateFromResponseHeaders(response.Headers);
180180
string claims = wwwAuthenticateParameters.Claims;
181-
IEnumerable<string> scopes = wwwAuthenticateParameters.Scopes;
182181
string proposedAction = wwwAuthenticateParameters["proposedAction"];
183182
string consentUri = wwwAuthenticateParameters["consentUri"];
184183

@@ -190,7 +189,7 @@ private async Task HandleChallengeFromWebApi(HttpResponseMessage response, IAcco
190189
{
191190
// Removes the account, but then re-signs-in
192191
await _app.RemoveAsync(account);
193-
await _app.AcquireTokenInteractive(scopes)
192+
await _app.AcquireTokenInteractive(new string[] { "user.read" })
194193
.WithPrompt(Prompt.Consent)
195194
.WithLoginHint(loginHint)
196195
.WithExtraQueryParameters(extraQueryParameters)

2. Web API now calls Microsoft Graph/TodoListClient/TodoListClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</ItemGroup>
110110
<ItemGroup>
111111
<PackageReference Include="Microsoft.Identity.Client">
112-
<Version>4.38.0</Version>
112+
<Version>4.43.1</Version>
113113
</PackageReference>
114114
<PackageReference Include="Newtonsoft.Json">
115115
<Version>11.0.2</Version>

2. Web API now calls Microsoft Graph/TodoListService/TodoListService.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.22.3" />
14+
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="1.24.0" />
1515
</ItemGroup>
1616

1717
</Project>

0 commit comments

Comments
 (0)