Make middleware report when auth fails.
This commit is contained in:
parent
779de7ae36
commit
81c06fa558
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue