JMS.Token.AspNetCore
2.0.1.8
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package JMS.Token.AspNetCore --version 2.0.1.8
NuGet\Install-Package JMS.Token.AspNetCore -Version 2.0.1.8
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.0.1.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JMS.Token.AspNetCore --version 2.0.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JMS.Token.AspNetCore, 2.0.1.8"
#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.0.1.8 // Install JMS.Token.AspNetCore as a Cake Tool #tool nuget:?package=JMS.Token.AspNetCore&version=2.0.1.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
基于JMS.Token的身份验证
services.AddJmsTokenAuthentication(new NetAddress("127.0.0.1", 9911));
app.UseAuthentication();
app.UseAuthorization();
如果通过验证,controller中通过下面代码获取token内容:
this.User.FindFirstValue("Content")
用依赖注入获取TokenClient实例,生成token
Product | Versions 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.
-
.NETCoreApp 3.1
- JMS.Token (>= 1.0.1.8)
- 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 |
---|---|---|
2.7.10 | 32 | 11/8/2024 |
2.7.9 | 31 | 11/7/2024 |
2.7.8 | 107 | 9/10/2024 |
2.7.7 | 99 | 9/10/2024 |
2.7.6 | 137 | 7/9/2024 |
2.7.5 | 99 | 6/24/2024 |
2.7.2 | 109 | 6/24/2024 |
2.7.1 | 102 | 6/18/2024 |
2.7.0 | 99 | 6/7/2024 |
2.6.1 | 83 | 5/31/2024 |
2.6.0 | 136 | 3/20/2024 |
2.5.0 | 190 | 12/30/2023 |
2.3.2 | 165 | 12/19/2023 |
2.3.1 | 139 | 12/18/2023 |
2.3.0 | 174 | 11/18/2023 |
2.2.10 | 148 | 10/20/2023 |
2.2.9 | 152 | 9/22/2023 |
2.2.8 | 174 | 8/30/2023 |
2.2.7 | 164 | 8/30/2023 |
2.2.6 | 214 | 8/4/2023 |
2.2.5 | 181 | 8/4/2023 |
2.2.3 | 187 | 7/14/2023 |
2.2.2 | 222 | 6/30/2023 |
2.2.1 | 207 | 6/30/2023 |
2.2.0 | 224 | 6/9/2023 |
2.1.5 | 214 | 5/15/2023 |
2.1.3 | 182 | 5/11/2023 |
2.1.2 | 216 | 5/8/2023 |
2.1.1 | 220 | 5/5/2023 |
2.1.0 | 207 | 5/5/2023 |
2.0.5 | 233 | 4/28/2023 |
2.0.3.8 | 219 | 4/27/2023 |
2.0.3.7 | 205 | 4/25/2023 |
2.0.3.6 | 253 | 4/19/2023 |
2.0.3.5 | 230 | 4/19/2023 |
2.0.3.3 | 226 | 4/19/2023 |
2.0.3.2 | 249 | 4/16/2023 |
2.0.3.1 | 258 | 4/15/2023 |
2.0.3 | 243 | 4/15/2023 |
2.0.2.1 | 226 | 4/15/2023 |
2.0.2 | 244 | 4/15/2023 |
2.0.1.10 | 241 | 4/8/2023 |
2.0.1.9 | 239 | 4/6/2023 |
2.0.1.8 | 241 | 4/5/2023 |
2.0.1.7 | 285 | 3/30/2023 |
2.0.1.6 | 296 | 3/30/2023 |
2.0.1.5 | 278 | 3/29/2023 |
2.0.1.3 | 296 | 3/14/2023 |
2.0.1.2 | 350 | 1/5/2023 |
2.0.1.1 | 358 | 1/5/2023 |
2.0.1 | 364 | 1/5/2023 |
2.0.0.2 | 366 | 1/1/2023 |
2.0.0.1 | 390 | 12/5/2022 |
2.0.0 | 362 | 11/29/2022 |
1.0.0.21 | 412 | 11/26/2022 |
1.0.0.20 | 394 | 11/18/2022 |
1.0.0.19 | 423 | 12/16/2021 |
1.0.0.18 | 485 | 6/15/2021 |
1.0.0.17 | 413 | 6/10/2021 |
1.0.0.16 | 433 | 6/10/2021 |
1.0.0.15 | 414 | 6/10/2021 |
1.0.0.13 | 414 | 6/10/2021 |
1.0.0.12 | 448 | 6/2/2021 |
1.0.0.11 | 444 | 6/2/2021 |
1.0.0.10 | 473 | 3/1/2021 |
1.0.0.9 | 441 | 2/23/2021 |
1.0.0.8 | 501 | 12/8/2020 |
1.0.0.7 | 493 | 11/20/2020 |
1.0.0.6 | 497 | 11/20/2020 |
1.0.0.5 | 579 | 8/21/2020 |