Skip to content

Commit

Permalink
update targetFrameworks, removed obsolete HmacAuthenticatedApps in hm…
Browse files Browse the repository at this point in the history
…ac options
  • Loading branch information
doerrD committed Feb 19, 2024
1 parent 09c15d6 commit 2d66796
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>

<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<Version>5.0.0</Version>
<PackageProjectUrl>https://github.com/softawaregmbh/library-authentication</PackageProjectUrl>
<RepositoryUrl>https://github.com/softawaregmbh/library-authentication</RepositoryUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<Version>3.0.0</Version>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<LangVersion>Latest</LangVersion>
<Version>2.1.0</Version>
<PackageProjectUrl>https://github.com/softawaregmbh/library-authentication</PackageProjectUrl>
<RepositoryUrl>https://github.com/softawaregmbh/library-authentication</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<Version>3.0.0</Version>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<LangVersion>Latest</LangVersion>
<Version>2.1.0</Version>
<PackageProjectUrl>https://github.com/softawaregmbh/library-authentication</PackageProjectUrl>
<RepositoryUrl>https://github.com/softawaregmbh/library-authentication</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private static HttpClient GetHttpClientWithHmacAutenticatedAppsOption(IDictionar
{
var factory = new TestWebApplicationFactory(o =>
{
o.HmacAuthenticatedApps = hmacAuthenticatedApps;
o.AuthorizationProvider = new MemoryHmacAuthenticationProvider(hmacAuthenticatedApps);
});

return factory.CreateDefaultClient(new ApiKeyDelegatingHandler(appId, apiKey));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>

<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication;
using softaware.Authentication.Hmac.AuthorizationProvider;

namespace softaware.Authentication.Hmac.AspNetCore
Expand All @@ -16,21 +14,6 @@ public class HmacAuthenticationSchemeOptions : AuthenticationSchemeOptions
/// </summary>
public bool TrustProxy { get; set; }

private IDictionary<string, string> hmacAuthenticatedApps = new Dictionary<string, string>();

[Obsolete("Please use the MemoryHmacAuthenticationProvider for configuring the HMAC apps in-memory. This property will be removed in future versions of this package.", error: false)]
public IDictionary<string, string> HmacAuthenticatedApps
{
get { return this.hmacAuthenticatedApps; }
set
{
this.hmacAuthenticatedApps = value;

// temporary backwards compatible solution as long as we support HmacAuthenticatedApps.
this.AuthorizationProvider = new MemoryHmacAuthenticationProvider(this.hmacAuthenticatedApps);
}
}

public IHmacAuthorizationProvider AuthorizationProvider { get; set; }

public HmacAuthenticationSchemeOptions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>softaware gmbh</Authors>
<Company>softaware gmbh</Company>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>

<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<LangVersion>Latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Company>softaware gmbh</Company>
<Authors>softaware gmbh</Authors>
<Description>A client library for HMAC authentication.</Description>
<Version>3.0.0</Version>
<Version>2.1.0</Version>
<RepositoryUrl>https://github.com/softawaregmbh/library-authentication</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>softaware, authentication, HMAC</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>Latest</LangVersion>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<LangVersion>Latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>softaware gmbh</Authors>
<Company>softaware gmbh</Company>
Expand All @@ -10,7 +10,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>softaware, authentication, HMAC</PackageTags>
<PackageProjectUrl>https://github.com/softawaregmbh/library-authentication</PackageProjectUrl>
<Version>3.0.0</Version>
<Version>2.1.0</Version>
<Description>Core library for HMAC authentication</Description>
<PackageIcon>package-icon.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down

0 comments on commit 2d66796

Please sign in to comment.