Browse Source

React to API changes in aspnet-contrib/AspNet.Security.OpenIdConnect.Server

pull/235/head
Kévin Chalet 10 years ago
parent
commit
62a0a5e012
  1. 3
      src/OpenIddict.Core/Infrastructure/OpenIddictProvider.Introspection.cs

3
src/OpenIddict.Core/Infrastructure/OpenIddictProvider.Introspection.cs

@ -95,6 +95,7 @@ namespace OpenIddict.Infrastructure {
"token '{Identifier}' because it's not listed as a valid audience.",
context.Request.ClientId, context.Ticket.GetTicketId());
context.Claims.RemoveAll();
context.Active = false;
return;
@ -106,6 +107,7 @@ namespace OpenIddict.Infrastructure {
"corresponding user ({Username}) was not found in the database.",
context.Ticket.GetTicketId(), services.Users.GetUserName(context.Ticket.Principal));
context.Claims.RemoveAll();
context.Active = false;
return;
@ -120,6 +122,7 @@ namespace OpenIddict.Infrastructure {
services.Logger.LogInformation("The token {Identifier} was declared as inactive because " +
"it was revoked.", context.Ticket.GetTicketId());
context.Claims.RemoveAll();
context.Active = false;
return;

Loading…
Cancel
Save