Skip to content

Commit 05ac92c

Browse files
committed
Signing the assembly
1 parent 40efbe5 commit 05ac92c

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ Install using the [ZNetCS.AspNetCore.Authentication.Basic NuGet package](https:/
1212
PM> Install-Package ZNetCS.AspNetCore.Authentication.Basic
1313
```
1414

15-
# Important change in 3.0.0
15+
# Important change in 4.0.0
16+
From now assembly is signed.
17+
18+
# Important change in 3.0.0
1619
The `OnValidatePrincipal` will not return `AuthenticationResult` any more. To simplify process can simply return `Task.CompletedTask`.
1720
Also to make success authentication `Principal` have to be assigned to `ValidatePrincipalContext` context.
1821

@@ -23,7 +26,7 @@ When you install the package, it should be added to your `.csproj`. Alternativel
2326

2427
```xml
2528
<ItemGroup>
26-
<PackageReference Include="ZNetCS.AspNetCore.Authentication.Basic" Version="3.0.2" />
29+
<PackageReference Include="ZNetCS.AspNetCore.Authentication.Basic" Version="4.0.0" />
2730
</ItemGroup>
2831
```
2932

596 Bytes
Binary file not shown.

src/ZNetCS.AspNetCore.Authentication.Basic/ZNetCS.AspNetCore.Authentication.Basic.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<PackageTags>aspnetcore;aspnetcoremvc;middleware;authentication;basic;ASP.NET;MVC</PackageTags>
1212
<PackageProjectUrl>https://github.com/msmolka/ZNetCS.AspNetCore.Authentication.Basic</PackageProjectUrl>
1313
<PackageLicenseUrl>https://raw.githubusercontent.com/msmolka/ZNetCS.AspNetCore.Authentication.Basic/master/LICENSE</PackageLicenseUrl>
14-
<PackageReleaseNotes>Cleanup dependencies.</PackageReleaseNotes>
14+
<PackageReleaseNotes>Library is now signed.</PackageReleaseNotes>
1515
<RepositoryType>git</RepositoryType>
1616
<RepositoryUrl>https://github.com/msmolka/ZNetCS.AspNetCore.Authentication.Basic</RepositoryUrl>
17-
<VersionPrefix>3.0.2</VersionPrefix>
17+
<VersionPrefix>4.0.0</VersionPrefix>
1818
<NoWarn>$(NoWarn);NU5125</NoWarn>
1919
<!-- remove once tools are truly ready for NuGet's new 'license' element -->
2020
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
@@ -24,6 +24,8 @@
2424
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
2525
<CodeAnalysisRuleSet>..\..\CommonRuleSet.ruleset</CodeAnalysisRuleSet>
2626
<LangVersion>8.0</LangVersion>
27+
<SignAssembly>true</SignAssembly>
28+
<AssemblyOriginatorKeyFile>StrongNameKey.snk</AssemblyOriginatorKeyFile>
2729
</PropertyGroup>
2830

2931
<ItemGroup>
@@ -35,8 +37,8 @@
3537
</PropertyGroup>
3638

3739
<ItemGroup>
38-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19367-01" PrivateAssets="all" />
39-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.7">
40+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="all" />
41+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
4042
<PrivateAssets>all</PrivateAssets>
4143
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4244
</PackageReference>

test/ZNetCS.AspNetCore.Authentication.BasicTests/ZNetCS.AspNetCore.Authentication.BasicTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
22+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
2323
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
2424
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
2525
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
@@ -35,7 +35,7 @@
3535
</ItemGroup>
3636

3737
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
38-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.0.0" />
38+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.0.2" />
3939
<FrameworkReference Include="Microsoft.AspNetCore.App" />
4040
</ItemGroup>
4141

0 commit comments

Comments
 (0)