CodeDesignPlus.Net.Security.Abstractions
0.3.0-beta.3
See the version list below for details.
dotnet add package CodeDesignPlus.Net.Security.Abstractions --version 0.3.0-beta.3
NuGet\Install-Package CodeDesignPlus.Net.Security.Abstractions -Version 0.3.0-beta.3
<PackageReference Include="CodeDesignPlus.Net.Security.Abstractions" Version="0.3.0-beta.3" />
paket add CodeDesignPlus.Net.Security.Abstractions --version 0.3.0-beta.3
#r "nuget: CodeDesignPlus.Net.Security.Abstractions, 0.3.0-beta.3"
// Install CodeDesignPlus.Net.Security.Abstractions as a Cake Addin #addin nuget:?package=CodeDesignPlus.Net.Security.Abstractions&version=0.3.0-beta.3&prerelease // Install CodeDesignPlus.Net.Security.Abstractions as a Cake Tool #tool nuget:?package=CodeDesignPlus.Net.Security.Abstractions&version=0.3.0-beta.3&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.Core (>= 0.3.0-beta.3)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.8)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on CodeDesignPlus.Net.Security.Abstractions:
Package | Downloads |
---|---|
CodeDesignPlus.Net.Security
CodeDesignPlus.Net.Security provides a comprehensive framework for implementing security features in .NET Core applications. This library simplifies the process of managing authentication, authorization, and other security-related tasks, enabling developers to build secure and robust applications. |
|
CodeDesignPlus.Net.Mongo.Abstractions
CodeDesignPlus.Net.Mongo.Abstractions provides essential interfaces and abstract classes for integrating MongoDB with .NET Core applications. This library defines core contracts and abstractions that facilitate a clean and maintainable architecture for data access using MongoDB, enabling better testing and extensibility. |
|
CodeDesignPlus.Net.EFCore.Abstractions
CodeDesignPlus.Net.EFCore.Abstractions provides essential interfaces and abstract classes for enhancing Entity Framework Core functionality. This library defines core contracts and abstractions that facilitate a clean and maintainable architecture for data access in .NET Core applications, enabling better testing and extensibility. |
|
CodeDesignPlus.Net.File.Storage.Abstractions
CodeDesignPlus.Net.File.Storage.Abstractions provides essential interfaces and abstract classes for managing file storage in .NET Core applications. This library defines core contracts and abstractions that facilitate a clean and maintainable architecture for file storage solutions, enabling better testing and extensibility. |
|
CodeDesignPlus.Net.xUnit.Microservice
A library designed to optimize and facilitate unit testing for microservices using xUnit in .NET Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.5.0-beta.14 | 37 | 11/8/2024 |
0.5.0-beta.13 | 32 | 11/7/2024 |
0.5.0-beta.11 | 35 | 11/6/2024 |
0.5.0-beta.9 | 40 | 11/3/2024 |
0.5.0-beta.6 | 39 | 11/1/2024 |
0.5.0-beta.4 | 38 | 10/31/2024 |
0.3.0-rc.3 | 37 | 10/28/2024 |
0.3.0-beta.3 | 35 | 10/28/2024 |
0.3.0-alpha.3 | 34 | 10/28/2024 |
0.2.1-alpha.1 | 35 | 10/26/2024 |
0.2.1-alpha.0 | 33 | 10/26/2024 |
0.2.0 | 85 | 10/25/2024 |
0.2.0-rc.27 | 38 | 10/25/2024 |
0.2.0-rc.18 | 58 | 10/1/2024 |
0.2.0-beta.27 | 36 | 10/25/2024 |
0.2.0-beta.18 | 113 | 10/1/2024 |
0.2.0-alpha.27 | 36 | 10/25/2024 |
0.2.0-alpha.26 | 36 | 10/25/2024 |
0.2.0-alpha.25 | 38 | 10/25/2024 |
0.2.0-alpha.24 | 36 | 10/25/2024 |
0.2.0-alpha.23 | 40 | 10/24/2024 |
0.2.0-alpha.22 | 40 | 10/24/2024 |
0.2.0-alpha.21 | 39 | 10/23/2024 |
0.2.0-alpha.20 | 51 | 10/22/2024 |
0.2.0-alpha.19 | 54 | 10/21/2024 |
0.2.0-alpha.18 | 48 | 10/1/2024 |
0.2.0-alpha.17 | 42 | 10/1/2024 |
0.2.0-alpha.16 | 49 | 9/30/2024 |
0.2.0-alpha.15 | 120 | 9/30/2024 |
0.2.0-alpha.14 | 43 | 9/30/2024 |
0.2.0-alpha.13 | 43 | 9/29/2024 |
0.2.0-alpha.12 | 46 | 9/29/2024 |
0.2.0-alpha.11 | 58 | 9/29/2024 |
0.2.0-alpha.10 | 52 | 9/28/2024 |
0.2.0-alpha.9 | 48 | 9/28/2024 |
0.2.0-alpha.7 | 50 | 9/28/2024 |
0.2.0-alpha.6 | 46 | 9/28/2024 |
0.2.0-alpha.5 | 46 | 9/28/2024 |
0.2.0-alpha.4 | 44 | 9/28/2024 |
0.2.0-alpha.3 | 65 | 9/1/2024 |
0.2.0-alpha.2 | 48 | 9/28/2024 |
0.1.2-alpha.1 | 70 | 8/24/2024 |
0.1.2-alpha.0 | 66 | 8/24/2024 |
0.1.1 | 182 | 8/23/2024 |
0.1.1-alpha.19 | 76 | 8/23/2024 |