![]() |
VOOZH | about |
dotnet add package JMS.Token.AspNetCore --version 9.0.2
NuGet\Install-Package JMS.Token.AspNetCore -Version 9.0.2
<PackageReference Include="JMS.Token.AspNetCore" Version="9.0.2" />
<PackageVersion Include="JMS.Token.AspNetCore" Version="9.0.2" />Directory.Packages.props
<PackageReference Include="JMS.Token.AspNetCore" />Project file
paket add JMS.Token.AspNetCore --version 9.0.2
#r "nuget: JMS.Token.AspNetCore, 9.0.2"
#:package JMS.Token.AspNetCore@9.0.2
#addin nuget:?package=JMS.Token.AspNetCore&version=9.0.2Install as a Cake Addin
#tool nuget:?package=JMS.Token.AspNetCore&version=9.0.2Install 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.0.2 | 253 | 11/28/2025 |
| 9.0.1 | 221 | 11/28/2025 |
| 9.0.0 | 265 | 5/21/2025 |
| 9.0.0-beta.1.0.1 | 263 | 5/14/2025 |
| 8.0.0-beta | 218 | 5/9/2025 |
| 2.8.0 | 253 | 3/29/2025 |
| 2.7.11 | 230 | 12/19/2024 |
| 2.7.10 | 243 | 11/8/2024 |
| 2.7.9 | 230 | 11/7/2024 |
| 2.7.8 | 264 | 9/10/2024 |
| 2.7.7 | 257 | 9/10/2024 |
| 2.7.6 | 292 | 7/9/2024 |
| 2.7.5 | 254 | 6/24/2024 |
| 2.7.2 | 263 | 6/24/2024 |
| 2.7.1 | 250 | 6/18/2024 |
| 2.7.0 | 243 | 6/7/2024 |
| 2.6.1 | 233 | 5/31/2024 |
| 2.6.0 | 289 | 3/20/2024 |
| 2.5.0 | 327 | 12/30/2023 |
| 2.3.2 | 327 | 12/19/2023 |