CodeDesignPlus.Net.Security 0.7.0-beta.29

This is a prerelease version of CodeDesignPlus.Net.Security.
There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeDesignPlus.Net.Security --version 0.7.0-beta.29
                    
NuGet\Install-Package CodeDesignPlus.Net.Security -Version 0.7.0-beta.29
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeDesignPlus.Net.Security" Version="0.7.0-beta.29" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeDesignPlus.Net.Security" Version="0.7.0-beta.29" />
                    
Directory.Packages.props
<PackageReference Include="CodeDesignPlus.Net.Security" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeDesignPlus.Net.Security --version 0.7.0-beta.29
                    
#r "nuget: CodeDesignPlus.Net.Security, 0.7.0-beta.29"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeDesignPlus.Net.Security@0.7.0-beta.29
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeDesignPlus.Net.Security&version=0.7.0-beta.29&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CodeDesignPlus.Net.Security&version=0.7.0-beta.29&prerelease
                    
Install as a Cake Tool

CodeDesignPlus.Net.Security

Quality Gate Status Bugs Code Smells Coverage Duplicated Lines (%) Vulnerabilities

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

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b features/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.12.0-beta.10246 646 9/9/2025
0.12.0-beta.7802 134 9/9/2025
0.12.0-beta.5359 200 9/7/2025
0.11.1-beta.0 202 9/21/2025
0.11.0 785 7/23/2025
0.11.0-rc.1647 532 7/23/2025
0.11.0-beta.476 526 7/22/2025
0.10.0 567 7/22/2025
0.10.0-rc.1306 532 7/22/2025
0.10.0-beta.471 533 7/22/2025
0.10.0-beta.470 534 7/22/2025
0.10.0-beta.469 534 7/22/2025
0.10.0-beta.468 487 7/21/2025
0.10.0-beta.467 482 7/21/2025
0.9.0 561 7/11/2025
0.9.0-rc.636 132 7/11/2025
0.9.0-beta.465 146 7/10/2025
0.8.0 235 7/10/2025
0.8.0-rc.306 137 7/10/2025
0.8.0-rc.305 139 7/10/2025
0.8.0-beta.149 146 7/10/2025
0.7.0 175 7/9/2025
0.7.0-rc.147 142 7/9/2025
0.7.0-rc.142 142 7/9/2025
0.7.0-rc.141 138 7/9/2025
0.7.0-rc.128 139 7/9/2025
0.7.0-beta.142 138 7/9/2025
0.7.0-beta.141 137 7/9/2025
0.7.0-beta.140 135 7/9/2025
0.7.0-beta.139 135 7/9/2025
0.7.0-beta.128 135 7/9/2025
0.7.0-beta.89 135 7/6/2025
0.7.0-beta.88 63 7/5/2025
0.7.0-beta.87 67 7/5/2025
0.7.0-beta.83 85 7/4/2025
0.7.0-beta.82 78 7/4/2025
0.7.0-beta.81 76 7/4/2025
0.7.0-beta.79 213 7/2/2025
0.7.0-beta.78 138 7/2/2025
0.7.0-beta.77 113 6/28/2025
0.7.0-beta.75 109 6/28/2025
0.7.0-beta.74 89 6/28/2025
0.7.0-beta.73 73 6/27/2025
0.7.0-beta.71 146 6/19/2025
0.7.0-beta.70 140 6/18/2025
0.7.0-beta.69 148 6/18/2025
0.7.0-beta.68 143 6/17/2025
0.7.0-beta.67 137 6/17/2025
0.7.0-beta.65 141 6/17/2025
0.7.0-beta.64 146 6/17/2025
0.7.0-beta.63 158 6/16/2025
0.7.0-beta.62 312 6/13/2025
0.7.0-beta.61 340 6/13/2025
0.7.0-beta.60 204 6/13/2025
0.7.0-beta.59 284 6/13/2025
0.7.0-beta.58 374 6/12/2025
0.7.0-beta.57 287 6/12/2025
0.7.0-beta.56 292 6/12/2025
0.7.0-beta.55 301 6/12/2025
0.7.0-beta.53 387 6/10/2025
0.7.0-beta.52 284 6/10/2025
0.7.0-beta.51 281 6/10/2025
0.7.0-beta.50 288 6/10/2025
0.7.0-beta.48 286 6/10/2025
0.7.0-beta.47 285 6/10/2025
0.7.0-beta.46 273 6/10/2025
0.7.0-beta.45 261 6/10/2025
0.7.0-beta.44 267 6/10/2025
0.7.0-beta.33 289 5/30/2025
0.7.0-beta.32 241 5/27/2025
0.7.0-beta.31 147 5/27/2025
0.7.0-beta.30 244 5/26/2025
0.7.0-beta.29 196 5/26/2025
0.7.0-beta.28 409 5/14/2025
0.7.0-beta.27 243 5/14/2025
0.7.0-beta.26 229 5/13/2025
0.7.0-beta.25 213 5/12/2025
0.7.0-beta.24 186 5/11/2025
0.7.0-beta.23 185 5/11/2025
0.7.0-beta.22 77 5/10/2025
0.7.0-beta.21 158 5/6/2025
0.7.0-beta.20 158 5/6/2025
0.7.0-beta.18 140 5/4/2025
0.7.0-beta.17 137 5/4/2025
0.7.0-beta.16 293 5/4/2025
0.7.0-beta.15 266 5/3/2025
0.7.0-beta.11 167 4/29/2025
0.7.0-beta.10 160 4/28/2025
0.7.0-beta.9 176 4/28/2025
0.7.0-beta.8 126 4/25/2025
0.7.0-beta.7 115 4/25/2025
0.7.0-beta.6 175 4/24/2025
0.7.0-beta.5 161 4/24/2025
0.7.0-beta.4 169 4/24/2025
0.7.0-beta.3 157 4/24/2025
0.7.0-beta.2 154 4/24/2025
0.6.1-beta.1 276 4/23/2025
0.6.0 218 4/12/2025
0.6.0-rc.29 96 4/11/2025
0.6.0-beta.29 242 4/11/2025
0.6.0-beta.28 133 4/11/2025
0.6.0-beta.26 249 3/27/2025
0.6.0-beta.22 169 2/27/2025
0.6.0-beta.21 225 2/26/2025
0.6.0-beta.20 162 2/25/2025
0.6.0-beta.18 106 2/23/2025
0.6.0-beta.15 99 2/22/2025
0.6.0-beta.10 168 2/7/2025
0.6.0-beta.9 89 2/6/2025
0.5.0 150 1/30/2025
0.5.0-rc.87 97 1/30/2025
0.5.0-beta.91 85 1/30/2025
0.5.0-beta.89 79 1/30/2025
0.5.0-beta.87 93 1/26/2025
0.5.0-beta.86 88 1/26/2025
0.5.0-beta.85 89 1/25/2025
0.5.0-beta.84 85 1/24/2025
0.5.0-beta.83 84 1/24/2025
0.5.0-beta.82 86 1/23/2025
0.5.0-beta.81 101 1/22/2025
0.5.0-beta.79 78 1/22/2025
0.5.0-beta.78 94 1/22/2025
0.5.0-beta.76 80 1/21/2025
0.5.0-beta.75 86 1/21/2025
0.5.0-beta.71 91 1/21/2025
0.5.0-beta.69 86 1/17/2025
0.5.0-beta.61 75 1/12/2025
0.5.0-beta.60 87 1/7/2025
0.5.0-beta.59 93 1/7/2025
0.5.0-beta.57 81 1/7/2025
0.5.0-beta.56 90 1/6/2025
0.5.0-beta.54 94 1/6/2025
0.5.0-beta.39 115 1/3/2025
0.5.0-beta.38 111 1/3/2025
0.5.0-beta.30 96 12/26/2024
0.5.0-beta.14 94 11/8/2024
0.5.0-beta.13 90 11/7/2024
0.5.0-beta.11 94 11/6/2024
0.5.0-beta.9 93 11/3/2024
0.5.0-beta.6 92 11/1/2024
0.5.0-beta.4 93 10/31/2024
0.3.0-rc.3 91 10/28/2024
0.3.0-beta.3 105 10/28/2024
0.3.0-alpha.3 92 10/28/2024
0.2.1-alpha.1 90 10/26/2024
0.2.1-alpha.0 82 10/26/2024
0.2.0 164 10/25/2024
0.2.0-rc.27 88 10/25/2024
0.2.0-rc.18 92 10/1/2024
0.2.0-beta.27 90 10/25/2024
0.2.0-beta.18 102 10/1/2024
0.2.0-alpha.27 85 10/25/2024
0.2.0-alpha.26 93 10/25/2024
0.2.0-alpha.25 85 10/25/2024
0.2.0-alpha.24 86 10/25/2024
0.2.0-alpha.23 90 10/24/2024
0.2.0-alpha.22 79 10/24/2024
0.2.0-alpha.21 95 10/23/2024
0.2.0-alpha.20 90 10/22/2024
0.2.0-alpha.19 105 10/21/2024
0.2.0-alpha.18 87 10/1/2024
0.2.0-alpha.17 85 10/1/2024
0.2.0-alpha.16 90 9/30/2024
0.2.0-alpha.15 170 9/30/2024
0.2.0-alpha.14 93 9/30/2024
0.2.0-alpha.13 93 9/29/2024
0.2.0-alpha.12 93 9/29/2024
0.2.0-alpha.11 98 9/29/2024
0.2.0-alpha.10 89 9/28/2024
0.2.0-alpha.9 107 9/28/2024
0.2.0-alpha.7 90 9/28/2024
0.2.0-alpha.6 92 9/28/2024
0.2.0-alpha.5 91 9/28/2024
0.2.0-alpha.4 91 9/28/2024
0.2.0-alpha.3 89 9/1/2024
0.2.0-alpha.2 87 9/28/2024
0.1.2-alpha.1 96 8/24/2024
0.1.2-alpha.0 102 8/24/2024
0.1.1 180 8/23/2024
0.1.1-alpha.19 107 8/23/2024