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" />
<PackageReference Include="JMS.Token.AspNetCore" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=JMS.Token.AspNetCore&version=9.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
基于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 | Versions 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.
-
net9.0
- JMS.Token (>= 9.0.2)
- Microsoft.AspNetCore.Authentication (>= 2.2.0)
- Microsoft.AspNetCore.Authentication.Abstractions (>= 2.2.0)
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 | 199 | 11/28/2025 |
| 9.0.1 | 188 | 11/28/2025 |
| 9.0.0 | 239 | 5/21/2025 |
| 9.0.0-beta.1.0.1 | 242 | 5/14/2025 |
| 8.0.0-beta | 195 | 5/9/2025 |
| 2.8.0 | 221 | 3/29/2025 |
| 2.7.11 | 199 | 12/19/2024 |
| 2.7.10 | 214 | 11/8/2024 |
| 2.7.9 | 201 | 11/7/2024 |
| 2.7.8 | 232 | 9/10/2024 |
| 2.7.7 | 223 | 9/10/2024 |
| 2.7.6 | 263 | 7/9/2024 |
| 2.7.5 | 223 | 6/24/2024 |
| 2.7.2 | 228 | 6/24/2024 |
| 2.7.1 | 224 | 6/18/2024 |
| 2.7.0 | 215 | 6/7/2024 |
| 2.6.1 | 204 | 5/31/2024 |
| 2.6.0 | 258 | 3/20/2024 |
| 2.5.0 | 302 | 12/30/2023 |
| 2.3.2 | 293 | 12/19/2023 |
Loading failed