JMS.Token.AspNetCore NuGet Package

基于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.




Got any JMS.Token.AspNetCore Question?





Info

Version: 2.6.0
Author(s): Jack
Last Update: Wednesday, March 20, 2024
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/JMS.Token.AspNetCore


Install
Install-Package JMS.Token.AspNetCore
dotnet add package JMS.Token.AspNetCore
paket add JMS.Token.AspNetCore
JMS.Token.AspNetCore Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

.5

avg-downloads-per-day

13

days-since-last-release

44