JMS.Token.AspNetCore 2.7.5

dotnet add package JMS.Token.AspNetCore --version 2.7.5
NuGet\Install-Package JMS.Token.AspNetCore -Version 2.7.5
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="2.7.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JMS.Token.AspNetCore --version 2.7.5
#r "nuget: JMS.Token.AspNetCore, 2.7.5"
#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.
// Install JMS.Token.AspNetCore as a Cake Addin
#addin nuget:?package=JMS.Token.AspNetCore&version=2.7.5

// Install JMS.Token.AspNetCore as a Cake Tool
#tool nuget:?package=JMS.Token.AspNetCore&version=2.7.5

基于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 net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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
2.7.5 64 6/24/2024
2.7.2 70 6/24/2024
2.7.1 73 6/18/2024
2.7.0 67 6/7/2024
2.6.1 51 5/31/2024
2.6.0 109 3/20/2024
2.5.0 167 12/30/2023
2.3.2 134 12/19/2023
2.3.1 110 12/18/2023
2.3.0 150 11/18/2023
2.2.10 127 10/20/2023
2.2.9 126 9/22/2023
2.2.8 139 8/30/2023
2.2.7 139 8/30/2023
2.2.6 187 8/4/2023
2.2.5 153 8/4/2023
2.2.3 158 7/14/2023
2.2.2 190 6/30/2023
2.2.1 176 6/30/2023
2.2.0 199 6/9/2023
2.1.5 194 5/15/2023
2.1.3 161 5/11/2023
2.1.2 183 5/8/2023
2.1.1 196 5/5/2023
2.1.0 185 5/5/2023
2.0.5 211 4/28/2023
2.0.3.8 196 4/27/2023
2.0.3.7 181 4/25/2023
2.0.3.6 223 4/19/2023
2.0.3.5 212 4/19/2023
2.0.3.3 203 4/19/2023
2.0.3.2 225 4/16/2023
2.0.3.1 231 4/15/2023
2.0.3 209 4/15/2023
2.0.2.1 198 4/15/2023
2.0.2 219 4/15/2023
2.0.1.10 216 4/8/2023
2.0.1.9 210 4/6/2023
2.0.1.8 215 4/5/2023
2.0.1.7 259 3/30/2023
2.0.1.6 271 3/30/2023
2.0.1.5 257 3/29/2023
2.0.1.3 276 3/14/2023
2.0.1.2 325 1/5/2023
2.0.1.1 331 1/5/2023
2.0.1 333 1/5/2023
2.0.0.2 339 1/1/2023
2.0.0.1 370 12/5/2022
2.0.0 342 11/29/2022
1.0.0.21 383 11/26/2022
1.0.0.20 367 11/18/2022
1.0.0.19 395 12/16/2021
1.0.0.18 457 6/15/2021
1.0.0.17 386 6/10/2021
1.0.0.16 397 6/10/2021
1.0.0.15 388 6/10/2021
1.0.0.13 388 6/10/2021
1.0.0.12 420 6/2/2021
1.0.0.11 421 6/2/2021
1.0.0.10 450 3/1/2021
1.0.0.9 414 2/23/2021
1.0.0.8 476 12/8/2020
1.0.0.7 468 11/20/2020
1.0.0.6 472 11/20/2020
1.0.0.5 550 8/21/2020