Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 11fb449

Browse files
authored
Merge pull request #121 from Azure-Samples/jennyf/msal4.9
Jennyf/msal4.9
2 parents 5db1754 + 0586bc3 commit 11fb449

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

UserDetailsClient/UserDetailsClient.Core/Features/LogOn/B2CAuthenticationService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public async Task<UserContext> SignInAsync()
5151
try
5252
{
5353
// acquire token silent
54-
newContext = await AcquireToken();
54+
newContext = await AcquireTokenSilent();
5555
}
5656
catch (MsalUiRequiredException)
5757
{
@@ -61,11 +61,11 @@ public async Task<UserContext> SignInAsync()
6161
return newContext;
6262
}
6363

64-
private async Task<UserContext> AcquireToken()
64+
private async Task<UserContext> AcquireTokenSilent()
6565
{
6666
IEnumerable<IAccount> accounts = await _pca.GetAccountsAsync();
6767
AuthenticationResult authResult = await _pca.AcquireTokenSilent(B2CConstants.Scopes, GetAccountByPolicy(accounts, B2CConstants.PolicySignUpSignIn))
68-
.WithB2CAuthority(B2CConstants.AuthoritySignInSignUp)
68+
.WithB2CAuthority(B2CConstants.AuthoritySignInSignUp)
6969
.ExecuteAsync();
7070

7171
var newContext = UpdateUserInfo(authResult);

UserDetailsClient/UserDetailsClient.Core/UserDetailsClient.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
1515
<PackageReference Include="System.Net.Http" Version="4.3.3" />
1616
<PackageReference Include="Xamarin.Forms" Version="3.0.0.530893" />
17-
<PackageReference Include="Microsoft.Identity.Client" Version="4.8.2" />
17+
<PackageReference Include="Microsoft.Identity.Client" Version="4.9.0" />
1818
</ItemGroup>
1919
</Project>

UserDetailsClient/UserDetailsClient.Droid/UserDetailsClient.Droid.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
<ItemGroup>
5151
<Reference Include="Java.Interop" />
5252
<Reference Include="Microsoft.CSharp" />
53-
<Reference Include="Microsoft.Identity.Client, Version=4.8.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae, processorArchitecture=MSIL">
54-
<HintPath>..\..\packages\Microsoft.Identity.Client.4.8.2\lib\monoandroid90\Microsoft.Identity.Client.dll</HintPath>
53+
<Reference Include="Microsoft.Identity.Client, Version=4.9.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae, processorArchitecture=MSIL">
54+
<HintPath>..\..\packages\Microsoft.Identity.Client.4.9.0\lib\monoandroid90\Microsoft.Identity.Client.dll</HintPath>
5555
</Reference>
5656
<Reference Include="Mono.Android" />
5757
<Reference Include="mscorlib" />

UserDetailsClient/UserDetailsClient.Droid/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<packages>
33
<package id="AsyncUsageAnalyzers" version="1.0.0-alpha003" targetFramework="monoandroid81" developmentDependency="true" />
44
<package id="Microsoft.CSharp" version="4.5.0" targetFramework="monoandroid81" />
5-
<package id="Microsoft.Identity.Client" version="4.8.2" targetFramework="monoandroid90" />
5+
<package id="Microsoft.Identity.Client" version="4.9.0" targetFramework="monoandroid90" />
66
<package id="Microsoft.NETCore.Platforms" version="2.1.0" targetFramework="monoandroid81" />
77
<package id="Microsoft.NETCore.Targets" version="1.1.3" targetFramework="monoandroid90" />
88
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="monoandroid60" />

UserDetailsClient/UserDetailsClient.UWP/UserDetailsClient.UWP.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
</ItemGroup>
133133
<ItemGroup>
134134
<PackageReference Include="Microsoft.Identity.Client">
135-
<Version>4.8.2</Version>
135+
<Version>4.9.0</Version>
136136
</PackageReference>
137137
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
138138
<Version>6.1.4</Version>

UserDetailsClient/UserDetailsClient.iOS/UserDetailsClient.iOS.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
</ItemGroup>
107107
<ItemGroup>
108108
<Reference Include="Microsoft.CSharp" />
109-
<Reference Include="Microsoft.Identity.Client, Version=4.8.2.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae, processorArchitecture=MSIL">
110-
<HintPath>..\..\packages\Microsoft.Identity.Client.4.8.2\lib\xamarinios10\Microsoft.Identity.Client.dll</HintPath>
109+
<Reference Include="Microsoft.Identity.Client, Version=4.9.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae, processorArchitecture=MSIL">
110+
<HintPath>..\..\packages\Microsoft.Identity.Client.4.9.0\lib\xamarinios10\Microsoft.Identity.Client.dll</HintPath>
111111
</Reference>
112112
<Reference Include="System" />
113113
<Reference Include="System.IdentityModel" />

UserDetailsClient/UserDetailsClient.iOS/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="AsyncUsageAnalyzers" version="1.0.0-alpha003" targetFramework="xamarinios10" developmentDependency="true" />
4+
<package id="Microsoft.Identity.Client" version="4.9.0" targetFramework="xamarinios10" />
45
<package id="Microsoft.CSharp" version="4.5.0" targetFramework="xamarinios10" />
56
<package id="Microsoft.NETCore.Platforms" version="1.1.1" targetFramework="xamarinios10" />
67
<package id="Microsoft.NETCore.Targets" version="1.1.3" targetFramework="xamarinios10" />

0 commit comments

Comments
 (0)