Skip to content

Commit

Permalink
revert msal preview updates (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Oct 15, 2021
1 parent 34325b3 commit 6384627
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Identity.Client" Version="4.37.0-preview" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.36.2" />

<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.205">
<PrivateAssets>all</PrivateAssets>
Expand Down
12 changes: 2 additions & 10 deletions src/Microsoft.Identity.Web/TokenAcquisition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -694,11 +694,6 @@ private IConfidentialClientApplication BuildConfidentialClientApplication(Merged
enablePiiLogging: mergedOptions.ConfidentialClientApplicationOptions.EnablePiiLogging)
.WithExperimentalFeatures();

if (_tokenCacheProvider is MsalMemoryTokenCacheProvider)
{
builder.WithCacheOptions(CacheOptions.EnableSharedCacheOptions);
}

// The redirect URI is not needed for OBO
if (!string.IsNullOrEmpty(currentUri))
{
Expand Down Expand Up @@ -739,11 +734,8 @@ private IConfidentialClientApplication BuildConfidentialClientApplication(Merged
_application = app;

// Initialize token cache providers
if (!(_tokenCacheProvider is MsalMemoryTokenCacheProvider))
{
_tokenCacheProvider.Initialize(app.AppTokenCache);
_tokenCacheProvider.Initialize(app.UserTokenCache);
}
_tokenCacheProvider.Initialize(app.AppTokenCache);
_tokenCacheProvider.Initialize(app.UserTokenCache);

return app;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Identity.Client" Version="4.37.0-preview" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.36.2" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 6384627

Please sign in to comment.