CodeDesignPlus.Net.Security
0.5.0-beta.4
See the version list below for details.
dotnet add package CodeDesignPlus.Net.Security --version 0.5.0-beta.4
NuGet\Install-Package CodeDesignPlus.Net.Security -Version 0.5.0-beta.4
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.5.0-beta.4" />
paket add CodeDesignPlus.Net.Security --version 0.5.0-beta.4
#r "nuget: CodeDesignPlus.Net.Security, 0.5.0-beta.4"
// Install CodeDesignPlus.Net.Security as a Cake Addin #addin nuget:?package=CodeDesignPlus.Net.Security&version=0.5.0-beta.4&prerelease // Install CodeDesignPlus.Net.Security as a Cake Tool #tool nuget:?package=CodeDesignPlus.Net.Security&version=0.5.0-beta.4&prerelease
CodeDesignPlus.Net.Security
Description
The CodeDesignPlus.Net.Security
library is a component of the CodeDesignPlus.Net SDK, designed to provide robust security features for .NET applications. This library encompasses various aspects of security, including authentication, authorization, and user context management, ensuring that applications can securely manage user identities and permissions.
Table of Contents
About The Project
The CodeDesignPlus.Net.Security
library is a component of the CodeDesignPlus.Net SDK, designed to provide robust security features for .NET applications. This library encompasses various aspects of security, including authentication, authorization, and user context management, ensuring that applications can securely manage user identities and permissions.
Key Features
User Context Management: The library provides an interface (IUserContext) and a concrete implementation (UserContext) for managing user information such as ID, name, email, and claims. This allows applications to easily access authenticated user details during a request.
Authentication and Authorization: The library includes extension methods for setting up security services in an IServiceCollection and configuring authentication in an IApplicationBuilder. This ensures seamless integration of JWT Bearer authentication and authorization in .NET applications.
Claims and Headers Handling: It offers utilities to handle claims and headers within user context, enabling the extraction of specific user information from JWT tokens and HTTP headers.
Security Configuration: The SecurityOptions class provides comprehensive configuration options for security settings, including authority, client ID, certificate paths, and validation parameters, ensuring that applications can be securely configured according to their requirements.
Error Handling: Custom extensions for handling authentication failures are provided, allowing applications to respond appropriately to various security token exceptions.
These features make the CodeDesignPlus.Net.Security
library an essential tool for integrating comprehensive security mechanisms in .NET applications, providing flexibility, reliability, and ease of use.
Installation
To install the package, run the following command:
dotnet add package CodeDesignPlus.Net.Security
Usage
For more information regarding the library, you can visit our documentation at CodeDesignPlus Doc
Roadmap
Refer to issues for a list of proposed features and known issues.
Roadmap
- Fork the Project
- Create your Feature Branch (git checkout -b features/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Contact
CodeDesignPlus - @CodeDesignPlus - codedesignplus@outlook.com
Project Link: CodeDesignPlus.Net.Security
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- CodeDesignPlus.Net.Security.Abstractions (>= 0.5.0-beta.4)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.0.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.1.0)
- Microsoft.IdentityModel.Protocols.OpenIdConnect (>= 8.1.0)
- System.IdentityModel.Tokens.Jwt (>= 8.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.0-beta.14 | 39 | 11/8/2024 |
0.5.0-beta.13 | 33 | 11/7/2024 |
0.5.0-beta.11 | 34 | 11/6/2024 |
0.5.0-beta.9 | 40 | 11/3/2024 |
0.5.0-beta.6 | 41 | 11/1/2024 |
0.5.0-beta.4 | 39 | 10/31/2024 |
0.3.0-rc.3 | 40 | 10/28/2024 |
0.3.0-beta.3 | 40 | 10/28/2024 |
0.3.0-alpha.3 | 39 | 10/28/2024 |
0.2.1-alpha.1 | 37 | 10/26/2024 |
0.2.1-alpha.0 | 36 | 10/26/2024 |
0.2.0 | 76 | 10/25/2024 |
0.2.0-rc.27 | 34 | 10/25/2024 |
0.2.0-rc.18 | 48 | 10/1/2024 |
0.2.0-beta.27 | 38 | 10/25/2024 |
0.2.0-beta.18 | 50 | 10/1/2024 |
0.2.0-alpha.27 | 34 | 10/25/2024 |
0.2.0-alpha.26 | 34 | 10/25/2024 |
0.2.0-alpha.25 | 34 | 10/25/2024 |
0.2.0-alpha.24 | 35 | 10/25/2024 |
0.2.0-alpha.23 | 38 | 10/24/2024 |
0.2.0-alpha.22 | 37 | 10/24/2024 |
0.2.0-alpha.21 | 40 | 10/23/2024 |
0.2.0-alpha.20 | 41 | 10/22/2024 |
0.2.0-alpha.19 | 49 | 10/21/2024 |
0.2.0-alpha.18 | 47 | 10/1/2024 |
0.2.0-alpha.17 | 45 | 10/1/2024 |
0.2.0-alpha.16 | 42 | 9/30/2024 |
0.2.0-alpha.15 | 123 | 9/30/2024 |
0.2.0-alpha.14 | 41 | 9/30/2024 |
0.2.0-alpha.13 | 47 | 9/29/2024 |
0.2.0-alpha.12 | 47 | 9/29/2024 |
0.2.0-alpha.11 | 58 | 9/29/2024 |
0.2.0-alpha.10 | 50 | 9/28/2024 |
0.2.0-alpha.9 | 52 | 9/28/2024 |
0.2.0-alpha.7 | 49 | 9/28/2024 |
0.2.0-alpha.6 | 48 | 9/28/2024 |
0.2.0-alpha.5 | 44 | 9/28/2024 |
0.2.0-alpha.4 | 52 | 9/28/2024 |
0.2.0-alpha.3 | 54 | 9/1/2024 |
0.2.0-alpha.2 | 51 | 9/28/2024 |
0.1.2-alpha.1 | 64 | 8/24/2024 |
0.1.2-alpha.0 | 67 | 8/24/2024 |
0.1.1 | 136 | 8/23/2024 |
0.1.1-alpha.19 | 72 | 8/23/2024 |