JMS.Token.AspNetCore 9.0.2

dotnet add package JMS.Token.AspNetCore --version 9.0.2
                    
NuGet\Install-Package JMS.Token.AspNetCore -Version 9.0.2
                    
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="9.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JMS.Token.AspNetCore" Version="9.0.2" />
                    
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 9.0.2
                    
#r "nuget: JMS.Token.AspNetCore, 9.0.2"
                    
#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@9.0.2
                    
#: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=9.0.2
                    
Install as a Cake Addin
#tool nuget:?package=JMS.Token.AspNetCore&version=9.0.2
                    
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 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
9.0.2 179 11/28/2025
9.0.1 176 11/28/2025
9.0.0 229 5/21/2025
9.0.0-beta.1.0.1 236 5/14/2025
8.0.0-beta 186 5/9/2025
2.8.0 207 3/29/2025
2.7.11 185 12/19/2024
2.7.10 202 11/8/2024
2.7.9 187 11/7/2024
2.7.8 215 9/10/2024
2.7.7 209 9/10/2024
2.7.6 245 7/9/2024
2.7.5 204 6/24/2024
2.7.2 214 6/24/2024
2.7.1 210 6/18/2024
2.7.0 202 6/7/2024
2.6.1 186 5/31/2024
2.6.0 239 3/20/2024
2.5.0 287 12/30/2023
2.3.2 277 12/19/2023
2.3.1 237 12/18/2023
2.3.0 235 11/18/2023
2.2.10 222 10/20/2023
2.2.9 229 9/22/2023
2.2.8 245 8/30/2023
2.2.7 251 8/30/2023
2.2.6 309 8/4/2023
2.2.5 277 8/4/2023
2.2.3 291 7/14/2023
2.2.2 330 6/30/2023
2.2.1 303 6/30/2023
2.2.0 333 6/9/2023
2.1.5 335 5/15/2023
2.1.3 298 5/11/2023
2.1.2 334 5/8/2023
2.1.1 339 5/5/2023
2.1.0 330 5/5/2023
2.0.5 351 4/28/2023
2.0.3.8 341 4/27/2023
2.0.3.7 326 4/25/2023
2.0.3.6 370 4/19/2023
2.0.3.5 356 4/19/2023
2.0.3.3 349 4/19/2023
2.0.3.2 369 4/16/2023
2.0.3.1 371 4/15/2023
2.0.3 360 4/15/2023
2.0.2.1 343 4/15/2023
2.0.2 363 4/15/2023
2.0.1.10 359 4/8/2023
2.0.1.9 354 4/6/2023
2.0.1.8 352 4/5/2023
2.0.1.7 401 3/30/2023
2.0.1.6 409 3/30/2023
2.0.1.5 394 3/29/2023
2.0.1.3 416 3/14/2023
2.0.1.2 480 1/5/2023
2.0.1.1 473 1/5/2023
2.0.1 483 1/5/2023
2.0.0.2 491 1/1/2023
2.0.0.1 520 12/5/2022
2.0.0 484 11/29/2022
1.0.0.21 538 11/26/2022
1.0.0.20 525 11/18/2022
1.0.0.19 581 12/16/2021
1.0.0.18 657 6/15/2021
1.0.0.17 581 6/10/2021
1.0.0.16 598 6/10/2021
1.0.0.15 578 6/10/2021
1.0.0.13 584 6/10/2021
1.0.0.12 616 6/2/2021
1.0.0.11 595 6/2/2021
1.0.0.10 641 3/1/2021
1.0.0.9 611 2/23/2021
1.0.0.8 680 12/8/2020
1.0.0.7 675 11/20/2020
1.0.0.6 676 11/20/2020
1.0.0.5 754 8/21/2020