Security
Security copied to clipboard
[Announcement] OAuthBearer renamed to JwtBearer
I was able to do this in beta7 but it change on beta8, please point how this change
app.UseOAuthBearerAuthentication(options =>
{
options.Notifications = new OAuthBearerAuthenticationNotifications
{
AuthenticationFailed = notificaton =>
{
notificaton.HandleResponse();
return Task.FromResult<object>(null);
}
};
});
This was renamed to JwtBearer: https://github.com/aspnet/Security/blob/1.0.0-beta8/src/Microsoft.AspNet.Authentication.JwtBearer/
app.UseJwtBearerAuthentication(options =>
{
options.Events = new JwtBearerEvents
{
OnAuthenticationFailed = context =>
{
context.HandleResponse();
return Task.FromResult(0);
}
};
});
thanks that did the trick
[Leaving open for discussion]