我想在Visual Studio 2017中的Web API ASP.Net Core 1.1項目上實現Jwt Token Auth。我遵循教程https://samueleresca.net/2016/12/developing-token-authentication-using-asp-net-core/,但是當我添加Microsoft時。 AspNetCore.Authentication
我必須缺少一些東西。我正在使用JJWT庫創建JWT。根據權利要求中設置的數據,JWT從庫中不一致地創建。我的代碼: Date now = new Date();
Date expiration = new Date(now.getTime() + TimeUnit.MINUTES.toMillis(30));
Claims claims = Jwts.claims();
JSONObje