Browse Source

Update IntrospectToken to immediately return an error when introspection fails and match ValidateIdentityModelToken

pull/1021/head
Kévin Chalet 6 years ago
parent
commit
f6ff9544b7
  1. 6
      src/OpenIddict.Validation/OpenIddictValidationHandlers.cs

6
src/OpenIddict.Validation/OpenIddictValidationHandlers.cs

@ -374,7 +374,11 @@ namespace OpenIddict.Validation
{
context.Logger.LogDebug(exception, "An error occurred while introspecting the access token.");
// If an error occurred while introspecting the token, allow other handlers to validate it.
context.Reject(
error: Errors.InvalidToken,
description: "The specified token is not valid.");
return;
}
}
}

Loading…
Cancel
Save