JMS.Token.AspNetCore 8.0.0-beta

This is a prerelease version of JMS.Token.AspNetCore.
There is a newer version of this package available.
See the version list below for details.
dotnet add package JMS.Token.AspNetCore --version 8.0.0-beta
                    
NuGet\Install-Package JMS.Token.AspNetCore -Version 8.0.0-beta
                    
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="JMS.Token.AspNetCore" Version="8.0.0-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JMS.Token.AspNetCore" Version="8.0.0-beta" />
                    
Directory.Packages.props
<PackageReference Include="JMS.Token.AspNetCore" />
                    
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 JMS.Token.AspNetCore --version 8.0.0-beta
                    
#r "nuget: JMS.Token.AspNetCore, 8.0.0-beta"
                    
#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 JMS.Token.AspNetCore@8.0.0-beta
                    
#: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=JMS.Token.AspNetCore&version=8.0.0-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=JMS.Token.AspNetCore&version=8.0.0-beta&prerelease
                    
Install as a Cake Tool

基于JMS.Token的身份验证
services.AddJmsTokenAspNetCore(new NetAddress("127.0.0.1", 9911),new string[]{"Authorization"});

app.UseAuthentication();
app.UseAuthorization();

如果通过验证,controller中通过下面代码获取token内容:
this.User.FindFirstValue("Content")

用依赖注入获取TokenClient实例,生成token

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 was computed.  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
9.0.0 191 5/21/2025
9.0.0-beta.1.0.1 214 5/14/2025
8.0.0-beta 165 5/9/2025
2.8.0 170 3/29/2025
2.7.11 156 12/19/2024
2.7.10 168 11/8/2024
2.7.9 160 11/7/2024
2.7.8 184 9/10/2024
2.7.7 176 9/10/2024
2.7.6 214 7/9/2024
2.7.5 175 6/24/2024
2.7.2 186 6/24/2024
2.7.1 179 6/18/2024
2.7.0 173 6/7/2024
2.6.1 155 5/31/2024
2.6.0 206 3/20/2024
2.5.0 254 12/30/2023
2.3.2 244 12/19/2023
2.3.1 201 12/18/2023
2.3.0 225 11/18/2023
2.2.10 202 10/20/2023
2.2.9 204 9/22/2023
2.2.8 230 8/30/2023
2.2.7 233 8/30/2023
2.2.6 289 8/4/2023
2.2.5 256 8/4/2023
2.2.3 276 7/14/2023
2.2.2 302 6/30/2023
2.2.1 284 6/30/2023
2.2.0 307 6/9/2023
2.1.5 304 5/15/2023
2.1.3 268 5/11/2023
2.1.2 304 5/8/2023
2.1.1 305 5/5/2023
2.1.0 296 5/5/2023
2.0.5 322 4/28/2023
2.0.3.8 305 4/27/2023
2.0.3.7 289 4/25/2023
2.0.3.6 338 4/19/2023
2.0.3.5 319 4/19/2023
2.0.3.3 314 4/19/2023
2.0.3.2 334 4/16/2023
2.0.3.1 343 4/15/2023
2.0.3 329 4/15/2023
2.0.2.1 313 4/15/2023
2.0.2 332 4/15/2023
2.0.1.10 319 4/8/2023
2.0.1.9 324 4/6/2023
2.0.1.8 317 4/5/2023
2.0.1.7 371 3/30/2023
2.0.1.6 374 3/30/2023
2.0.1.5 366 3/29/2023
2.0.1.3 374 3/14/2023
2.0.1.2 446 1/5/2023
2.0.1.1 435 1/5/2023
2.0.1 446 1/5/2023
2.0.0.2 449 1/1/2023
2.0.0.1 481 12/5/2022
2.0.0 454 11/29/2022
1.0.0.21 505 11/26/2022
1.0.0.20 488 11/18/2022
1.0.0.19 539 12/16/2021
1.0.0.18 609 6/15/2021
1.0.0.17 533 6/10/2021
1.0.0.16 545 6/10/2021
1.0.0.15 530 6/10/2021
1.0.0.13 529 6/10/2021
1.0.0.12 566 6/2/2021
1.0.0.11 550 6/2/2021
1.0.0.10 587 3/1/2021
1.0.0.9 570 2/23/2021
1.0.0.8 629 12/8/2020
1.0.0.7 611 11/20/2020
1.0.0.6 626 11/20/2020
1.0.0.5 708 8/21/2020