JWT provider for ASP.Net Core
This is a very basic JWT provider inspired by SimpleTokenProvider with some refactoring and access to the HttpContext.
app.UseJwtProvider(new JwtOptions(AuthenticateFunction));
app.UseMvc();
private async Task<AuthenticationResult> AuthenticateFunction(AuthenticationRequest request)
{
return new AuthenticationResult { Authenticated = true };
}