b9491256b0
* Fixed the unit tests so that they are now passing. Note: This is my first real introduction to Moq, so there are probably a few things that can be improved. Changes: * Had a few issues with the mock logger, ended up adding a LoggerFactory and Logger implementation to work around this issue (for some reason the mock logger was never called and the unit tests failed because the string builder was never updated). * Accommodated changes to the SignInManager, UserManager where the latest version has added Logging to constructor * SecurityStamp functions in UserManager now check for null and throws an exception, so the unit tests can no longer call GetSecurityStampAsync before its set. Line 866: https://github.com/dotnet/aspnetcore/blame/605c522fa3e875fd6d3aefa783a71d1745b7e4c7/src/Identity/Extensions.Core/src/UserManager.cs * SignInManager.RefreshSignInAsync has changed the internal method from s.SignInAsync to SignInWithClaimsAsync
43 lines
2.1 KiB
XML
43 lines
2.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
|
<UserSecretsId>aspnet-MongoIdentitySample.Mvc-95B15D82-54F6-4001-B4B0-6ADF4B1BB00E</UserSecretsId>
|
|
</PropertyGroup>
|
|
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.13.0-beta1" />
|
|
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.1" />
|
|
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="3.1.1" />
|
|
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="3.1.1" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="3.1.1" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.1" />
|
|
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.0" PrivateAssets="All" />
|
|
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.1" />
|
|
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.1" />
|
|
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\AspNetCore.Identity.MongoDbCore.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Update="appsettings.json">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
</Project>
|