ASP.NET Core 2.0 Bearer Auth without Identity
Did an edit to make it compatible with ASP.NET Core 2.0. Firstly, some Nuget packages: Microsoft.AspNetCore.Authentication.JwtBearer Microsoft.AspNetCore.Identity System.IdentityModel.Tokens.Jwt System.Security.Cryptography.Csp Then some basic data transfer objects. // Presumably you will have an equivalent user account class with a user name. public class User { public string UserName { get; set; } } public class JsonWebToken { … Read more