A2v10.Identity.Jwt 10.1.8674

dotnet add package A2v10.Identity.Jwt --version 10.1.8674
                    
NuGet\Install-Package A2v10.Identity.Jwt -Version 10.1.8674
                    
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="A2v10.Identity.Jwt" Version="10.1.8674" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="A2v10.Identity.Jwt" Version="10.1.8674" />
                    
Directory.Packages.props
<PackageReference Include="A2v10.Identity.Jwt" />
                    
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 A2v10.Identity.Jwt --version 10.1.8674
                    
#r "nuget: A2v10.Identity.Jwt, 10.1.8674"
                    
#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 A2v10.Identity.Jwt@10.1.8674
                    
#: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=A2v10.Identity.Jwt&version=10.1.8674
                    
Install as a Cake Addin
#tool nuget:?package=A2v10.Identity.Jwt&version=10.1.8674
                    
Install as a Cake Tool

About

A2v10.Identity.Jwt is a set of Jwt bearer identity services for the A2v10 platform applications.

How to use

// T - type of user identifier

services.AddPlatformIdentityCore<T>()
.AddIdentityConfiguration<T>(configuration)
.AddPlatformAuthentication()
.AddPlatformJwtBearer(configuration);

appsettings.json configuration

"Authentication": {
    "JwtBearer": {
        "Issuer": "token issuer",
        "Audience": "token Audience",
        "ExpireMinutes": 10080,
        "SecurityKey": "<SecurityKeyValue> (min 16 chars)"
    }
},
"Identity": {
    "UserStore": {
        "DataSource": "Connection String Name",
        "Schema": "Database Schema",
        "MultiTenant": true
    }
}

Configure Swagger

Add PackageReference to Swashbuckle.AspNetCore:

<PackageReference Include="Swashbuckle.AspNetCore" Version="10.0.0" />

and add the following code to Startup.cs:

using Microsoft.OpenApi;

services.AddSwaggerGen(c =>
{
    c.AddSecurityDefinition(JwtBearerAuthenticationOptions.Scheme, new OpenApiSecurityScheme
    {
        Type = SecuritySchemeType.Http,
        In = ParameterLocation.Header,
        Scheme = JwtBearerAuthenticationOptions.Scheme,
    });

    c.AddSecurityRequirement(doc => new OpenApiSecurityRequirement()
    {
        {
            new OpenApiSecuritySchemeReference(JwtBearerAuthenticationOptions.Scheme, doc),
            new List<String>()
        }
    });
});

Feedback

A2v10.Identity.Jwt is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product 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.  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 is compatible.  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
10.1.8674 67 11/12/2026
10.1.8673 82 11/11/2026
10.1.8672 93 11/4/2026
10.1.8671 112 10/16/2026
10.1.8670 102 10/12/2026
10.1.8668 108 10/5/2026
10.1.8663 186 9/20/2026
10.1.8653 139 9/13/2026
10.1.8650 152 8/18/2026
10.1.8647 195 7/15/2026
10.1.8642 153 6/27/2026
10.1.8641 161 6/10/2026
10.1.8639 167 6/7/2026
10.1.8637 170 5/8/2026
10.1.8636 162 4/24/2026
10.1.8634 167 4/21/2026
10.1.8631 176 3/29/2026
10.1.8630 165 3/24/2026
10.1.8624 203 3/4/2026
10.1.8622 180 2/24/2026
Loading failed