From 8403a0ce4daff5c9b695edf7fda6533604db2278 Mon Sep 17 00:00:00 2001 From: Charley Wu Date: Wed, 20 Apr 2022 22:14:08 +0800 Subject: [PATCH 1/2] Use the ASP.NET Core shared framework - https://docs.microsoft.com/aspnet/core/fundamentals/target-aspnetcore#use-the-aspnet-core-shared-framework --- .../OAuth2HttpClientSample.csproj | 4 ---- .../OAuthHttpClientSample.csproj | 4 ---- .../OAuthInteractiveConsoleAuthorizer.csproj | 5 ----- .../GSS.Authorization.OAuth.HttpClient.csproj | 19 ++-------------- .../GSS.Authorization.OAuth.csproj | 8 +++++-- ...GSS.Authorization.OAuth2.HttpClient.csproj | 22 ++----------------- .../GSS.Authorization.OAuth2.csproj | 11 +++++----- ...uthorization.OAuth.HttpClient.Tests.csproj | 4 ---- ...thorization.OAuth2.HttpClient.Tests.csproj | 4 ---- .../GSS.Authorization.OAuth2.Tests.csproj | 5 ----- 10 files changed, 16 insertions(+), 70 deletions(-) diff --git a/samples/OAuth2HttpClientSample/OAuth2HttpClientSample.csproj b/samples/OAuth2HttpClientSample/OAuth2HttpClientSample.csproj index f2c8662..0d495c1 100644 --- a/samples/OAuth2HttpClientSample/OAuth2HttpClientSample.csproj +++ b/samples/OAuth2HttpClientSample/OAuth2HttpClientSample.csproj @@ -20,8 +20,4 @@ - - - - diff --git a/samples/OAuthHttpClientSample/OAuthHttpClientSample.csproj b/samples/OAuthHttpClientSample/OAuthHttpClientSample.csproj index 31e64f3..301f58d 100644 --- a/samples/OAuthHttpClientSample/OAuthHttpClientSample.csproj +++ b/samples/OAuthHttpClientSample/OAuthHttpClientSample.csproj @@ -19,9 +19,5 @@ - - - - diff --git a/samples/OAuthInteractiveConsoleAuthorizer/OAuthInteractiveConsoleAuthorizer.csproj b/samples/OAuthInteractiveConsoleAuthorizer/OAuthInteractiveConsoleAuthorizer.csproj index 88948ec..323aa05 100644 --- a/samples/OAuthInteractiveConsoleAuthorizer/OAuthInteractiveConsoleAuthorizer.csproj +++ b/samples/OAuthInteractiveConsoleAuthorizer/OAuthInteractiveConsoleAuthorizer.csproj @@ -23,9 +23,4 @@ - - - - - diff --git a/src/GSS.Authorization.OAuth.HttpClient/GSS.Authorization.OAuth.HttpClient.csproj b/src/GSS.Authorization.OAuth.HttpClient/GSS.Authorization.OAuth.HttpClient.csproj index 65fb0f0..6bdf83f 100644 --- a/src/GSS.Authorization.OAuth.HttpClient/GSS.Authorization.OAuth.HttpClient.csproj +++ b/src/GSS.Authorization.OAuth.HttpClient/GSS.Authorization.OAuth.HttpClient.csproj @@ -1,7 +1,7 @@ - netstandard2.0;netcoreapp3.1;net5.0;net6.0 + netstandard2.0;netcoreapp3.1 OAuth 1.0 authorized HttpClient, friendly with HttpClientFactory OAuth;HttpClient;HttpHandler GSS.Authorization.OAuth @@ -11,24 +11,9 @@ - - - - + - - - - - - - - - - - - diff --git a/src/GSS.Authorization.OAuth/GSS.Authorization.OAuth.csproj b/src/GSS.Authorization.OAuth/GSS.Authorization.OAuth.csproj index 43e554f..ddb2021 100644 --- a/src/GSS.Authorization.OAuth/GSS.Authorization.OAuth.csproj +++ b/src/GSS.Authorization.OAuth/GSS.Authorization.OAuth.csproj @@ -1,18 +1,22 @@ - netstandard2.0 + netstandard2.0;netcoreapp3.1 OAuth 1.0 Authorizer and Signer OAuth - + + + + + <_Parameter1>$(MSBuildProjectName).Tests diff --git a/src/GSS.Authorization.OAuth2.HttpClient/GSS.Authorization.OAuth2.HttpClient.csproj b/src/GSS.Authorization.OAuth2.HttpClient/GSS.Authorization.OAuth2.HttpClient.csproj index e770825..447e2bc 100644 --- a/src/GSS.Authorization.OAuth2.HttpClient/GSS.Authorization.OAuth2.HttpClient.csproj +++ b/src/GSS.Authorization.OAuth2.HttpClient/GSS.Authorization.OAuth2.HttpClient.csproj @@ -1,7 +1,7 @@ - netstandard2.0;netcoreapp3.1;net5.0;net6.0 + netstandard2.0;netcoreapp3.1 OAuth 2.0 authorized HttpClient, friendly with HttpClientFactory OAuth;OAuth2;HttpClient;HttpHandler GSS.Authorization.OAuth2 @@ -11,28 +11,10 @@ - - - - + - - - - - - - - - - - - - - - diff --git a/src/GSS.Authorization.OAuth2/GSS.Authorization.OAuth2.csproj b/src/GSS.Authorization.OAuth2/GSS.Authorization.OAuth2.csproj index c835839..e68fa50 100644 --- a/src/GSS.Authorization.OAuth2/GSS.Authorization.OAuth2.csproj +++ b/src/GSS.Authorization.OAuth2/GSS.Authorization.OAuth2.csproj @@ -6,14 +6,15 @@ OAuth;OAuth2 - - - - - + + + + + + diff --git a/test/GSS.Authorization.OAuth.HttpClient.Tests/GSS.Authorization.OAuth.HttpClient.Tests.csproj b/test/GSS.Authorization.OAuth.HttpClient.Tests/GSS.Authorization.OAuth.HttpClient.Tests.csproj index 24969d2..897fdd3 100644 --- a/test/GSS.Authorization.OAuth.HttpClient.Tests/GSS.Authorization.OAuth.HttpClient.Tests.csproj +++ b/test/GSS.Authorization.OAuth.HttpClient.Tests/GSS.Authorization.OAuth.HttpClient.Tests.csproj @@ -18,8 +18,4 @@ - - - - diff --git a/test/GSS.Authorization.OAuth2.HttpClient.Tests/GSS.Authorization.OAuth2.HttpClient.Tests.csproj b/test/GSS.Authorization.OAuth2.HttpClient.Tests/GSS.Authorization.OAuth2.HttpClient.Tests.csproj index 8f0cd28..138aa9e 100644 --- a/test/GSS.Authorization.OAuth2.HttpClient.Tests/GSS.Authorization.OAuth2.HttpClient.Tests.csproj +++ b/test/GSS.Authorization.OAuth2.HttpClient.Tests/GSS.Authorization.OAuth2.HttpClient.Tests.csproj @@ -18,8 +18,4 @@ - - - - diff --git a/test/GSS.Authorization.OAuth2.Tests/GSS.Authorization.OAuth2.Tests.csproj b/test/GSS.Authorization.OAuth2.Tests/GSS.Authorization.OAuth2.Tests.csproj index f6140a1..aec456a 100644 --- a/test/GSS.Authorization.OAuth2.Tests/GSS.Authorization.OAuth2.Tests.csproj +++ b/test/GSS.Authorization.OAuth2.Tests/GSS.Authorization.OAuth2.Tests.csproj @@ -18,9 +18,4 @@ - - - - - From cabac6e754e1c493d74dd18e1ed2a530e09fffff Mon Sep 17 00:00:00 2001 From: Charley Wu Date: Wed, 20 Apr 2022 22:14:37 +0800 Subject: [PATCH 2/2] Bump version to 2.5.0 --- CHANGELOG.md | 4 ++++ src/Directory.Build.props | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c59cfec..842119a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 2.5.0 (2022-04-20) + +- [Use the ASP.NET Core shared framework](https://docs.microsoft.com/aspnet/core/fundamentals/target-aspnetcore#use-the-aspnet-core-shared-framework) + ## 2.4.1 (2022-04-03) - [Avoid to override the Authorization header](https://tools.ietf.org/html/rfc6749#section-5.2) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 2281664..02bd67c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -10,7 +10,7 @@ true true enable - 2.4.1 + 2.5.0