Make middleware report when auth fails.

This commit is contained in:
Chris Ross 2014-06-30 14:12:55 -07:00
parent 779de7ae36
commit 81c06fa558
1 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,10 @@ namespace Microsoft.AspNet.Security.Infrastructure
{
context.Authenticated(ticket.Identity, ticket.Properties.Dictionary, BaseOptions.Description.Dictionary);
}
else
{
context.NotAuthenticated(BaseOptions.AuthenticationType, properties: null, description: BaseOptions.Description.Dictionary);
}
}
if (PriorHandler != null)