From 40fa221ccdb19af609381ad3702a2365f3bd227a Mon Sep 17 00:00:00 2001 From: Kirill Kovalev <125643929+kirill-abblix@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:33:06 +0300 Subject: [PATCH] fix nuget packages bogus references --- .../Abblix.DependencyInjection.csproj | 5 +-- .../Abblix.Jwt.UnitTests.csproj | 8 ++-- Abblix.Jwt/Abblix.Jwt.csproj | 12 ++---- .../Abblix.Oidc.Server.Mvc.csproj | 10 ++--- .../ActionResults/CookieOptionsExtensions.cs | 27 ++++++------ .../Abblix.Oidc.Server.Tests.csproj | 9 ++-- .../Abblix.Oidc.Server.UnitTests.csproj | 8 ++-- Abblix.Oidc.Server/Abblix.Oidc.Server.csproj | 34 ++++++++------- Abblix.Oidc.Server/Abblix.Oidc.Server.nuspec | 42 ------------------- .../Abblix.Utils.UnitTests.csproj | 8 ++-- 10 files changed, 57 insertions(+), 106 deletions(-) delete mode 100644 Abblix.Oidc.Server/Abblix.Oidc.Server.nuspec diff --git a/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj b/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj index 8618f7e5..5546db4d 100644 --- a/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj +++ b/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj @@ -5,10 +5,7 @@ enable enable false - - Enhances .NET applications with Abblix's sophisticated dependency injection patterns, - offering features like service aliasing, composite services, and decorators for streamlined service registration. - + Enhances .NET applications with Abblix's sophisticated dependency injection patterns, offering features like service aliasing, composite services, and decorators for streamlined service registration. diff --git a/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj b/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj index a5e90e13..76c56930 100644 --- a/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj +++ b/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj @@ -10,13 +10,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Abblix.Jwt/Abblix.Jwt.csproj b/Abblix.Jwt/Abblix.Jwt.csproj index d9653199..e4c249bd 100644 --- a/Abblix.Jwt/Abblix.Jwt.csproj +++ b/Abblix.Jwt/Abblix.Jwt.csproj @@ -5,18 +5,12 @@ enable enable false - - A lightweight, easy-to-use library for generating, validating, and working with JSON Web Tokens (JWT) in .NET applications. - Whether you're developing web APIs, microservices, or serverless applications that require secure, stateless authentication - and authorization solutions, Abblix.Jwt provides a robust set of features to incorporate JWT-based authentication - with minimal effort. Features include token validation, custom claims, signature verification, and audience validation, - making it an ideal choice for developers looking to secure their .NET applications efficiently. - + A lightweight, easy-to-use library for generating, validating, and working with JSON Web Tokens (JWT) in .NET applications. Whether you're developing web APIs, microservices, or serverless applications that require secure, stateless authentication and authorization solutions, Abblix.Jwt provides a robust set of features to incorporate JWT-based authentication with minimal effort. Features include token validation, custom claims, signature verification, and audience validation, making it an ideal choice for developers looking to secure their .NET applications efficiently. - - + + diff --git a/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj b/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj index 6bd9bea5..b7b64704 100644 --- a/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj +++ b/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj @@ -8,11 +8,7 @@ net6.0;net7.0;net8.0 true true - - The package integrates Abblix's OpenID Connect Server capabilities with ASP.NET MVC, offering seamless - support for authentication and authorization in MVC applications. It enables rapid implementation of - secure OpenID Connect protocols, ensuring robust security features are accessible within the MVC framework. - + The package integrates Abblix's OpenID Connect Server capabilities with ASP.NET MVC, offering seamless support for authentication and authorization in MVC applications. It enables rapid implementation of secure OpenID Connect protocols, ensuring robust security features are accessible within the MVC framework. @@ -20,11 +16,13 @@ + + - + diff --git a/Abblix.Oidc.Server.Mvc/ActionResults/CookieOptionsExtensions.cs b/Abblix.Oidc.Server.Mvc/ActionResults/CookieOptionsExtensions.cs index 280c2f28..4c767f0b 100644 --- a/Abblix.Oidc.Server.Mvc/ActionResults/CookieOptionsExtensions.cs +++ b/Abblix.Oidc.Server.Mvc/ActionResults/CookieOptionsExtensions.cs @@ -38,18 +38,17 @@ public static class CookieOptionsExtensions /// /// The custom cookie options to convert. /// The converted suitable for ASP.NET Core. - public static CookieOptions ConvertOptions(this Common.CookieOptions options) - => new() - { - Domain = options.Domain, - Path = options.Path, - Secure = options.Secure, - IsEssential = options.IsEssential, - HttpOnly = options.HttpOnly, - SameSite = options.SameSite.ConvertSameSite(), - Expires = options.Expires, - MaxAge = options.MaxAge, - }; + public static CookieOptions ConvertOptions(this Common.CookieOptions options) => new() + { + Domain = options.Domain, + Path = options.Path, + Secure = options.Secure, + IsEssential = options.IsEssential, + HttpOnly = options.HttpOnly, + SameSite = options.SameSite.ConvertSameSite(), + Expires = options.Expires, + MaxAge = options.MaxAge, + }; /// /// Converts a string representation of the SameSite attribute to its equivalent. @@ -57,7 +56,9 @@ public static CookieOptions ConvertOptions(this Common.CookieOptions options) /// The string representation of the SameSite attribute. /// The value corresponding to the input string. private static SameSiteMode ConvertSameSite(this string? sameSite) - => sameSite.HasValue() + { + return sameSite.HasValue() ? Enum.Parse(sameSite, true) : SameSiteMode.Unspecified; + } } diff --git a/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj b/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj index 59e0d994..823aaa26 100644 --- a/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj +++ b/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj @@ -7,13 +7,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -26,6 +26,7 @@ + diff --git a/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj b/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj index 66916676..15fa95d0 100644 --- a/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj +++ b/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj @@ -6,13 +6,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj b/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj index 825f2d20..fa1b572b 100644 --- a/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj +++ b/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj @@ -8,7 +8,6 @@ https://github.com/Abblix/Oidc.Server net6.0;net7.0;net8.0 true - true @@ -25,22 +24,25 @@ - - + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/Abblix.Oidc.Server/Abblix.Oidc.Server.nuspec b/Abblix.Oidc.Server/Abblix.Oidc.Server.nuspec deleted file mode 100644 index bcf3e959..00000000 --- a/Abblix.Oidc.Server/Abblix.Oidc.Server.nuspec +++ /dev/null @@ -1,42 +0,0 @@ - - - - Abblix.Oidc.Server - 1.0.0 - Abblix OpenID Connect Server - Abblix.Oidc.Server - Flexible OpenID Connect and OAuth 2.0 server-side implementation for modern ASP.NET projects - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj b/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj index ae1ec9d2..0a26131b 100644 --- a/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj +++ b/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj @@ -10,13 +10,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all