Skip to content

Commit 41211ca

Browse files
committed
Updated dependencies and made methods virtual
1 parent 20f3b16 commit 41211ca

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

src/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
65
<AssemblyName>ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher</AssemblyName>
76
<PackageId>ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher</PackageId>
8-
<PackageVersion>1.0.0</PackageVersion>
7+
<PackageVersion>1.1.0</PackageVersion>
98
<Authors>Scott Brady</Authors>
109
<Description>ASP.NET Core Identity IPasswordHasher implementation using Scrypt</Description>
1110
<Copyright>Copyright (c) 2017 Scott Brady</Copyright>
1211
<PackageTags>aspnetcore;identity;scrypt;password;hashing;hash;security</PackageTags>
1312
<PackageIconUrl>https://www.scottbrady91.com/img/logos/scottbrady91.png</PackageIconUrl>
1413
<PackageProjectUrl>https://github.com/scottbrady91/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher</PackageProjectUrl>
15-
<PackageLicenseUrl>https://github.com/scottbrady91/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher/blob/master/LICENSE</PackageLicenseUrl>
14+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
15+
<PackageReleaseNotes>Updated ASP.NET Identity dependencies. Made methods virtual.</PackageReleaseNotes>
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="2.0.0" />
19+
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="2.1.6" />
2020
<PackageReference Include="Scrypt.NET" Version="1.3.0" />
2121
</ItemGroup>
2222

src/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher/ScryptPasswordHasher.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ public ScryptPasswordHasher(IOptions<ScryptPasswordHasherOptions> optionsAccesso
1414
options = optionsAccessor?.Value ?? new ScryptPasswordHasherOptions();
1515
}
1616

17-
public string HashPassword(TUser user, string password)
17+
public virtual string HashPassword(TUser user, string password)
1818
{
1919
if (password == null) throw new ArgumentNullException(nameof(password));
2020

2121
var encoder = new ScryptEncoder(options.IterationCount, options.BlockSize, options.ThreadCount);
2222
return encoder.Encode(password);
2323
}
2424

25-
public PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword)
25+
public virtual PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword)
2626
{
2727
if (hashedPassword == null) throw new ArgumentNullException(nameof(hashedPassword));
2828
if (providedPassword == null) throw new ArgumentNullException(nameof(providedPassword));

test/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher.Tests/ScottBrady91.AspNetCore.Identity.ScryptPasswordHasher.Tests.csproj

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp2.0;netcoreapp2.1;netcoreapp2.2;net461</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="FluentAssertions" Version="4.19.4" />
9-
<PackageReference Include="xunit" Version="2.3.0" />
10-
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0" />
8+
<PackageReference Include="FluentAssertions" Version="5.6.0" />
9+
<PackageReference Include="xunit" Version="2.4.1" />
10+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
11+
<PrivateAssets>all</PrivateAssets>
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
</PackageReference>
1114
</ItemGroup>
1215

1316
<ItemGroup>

0 commit comments

Comments
 (0)