Browse Source

Fix ValidateResponseTypePermissions to use the correct log message identifier

pull/1162/head
Kévin Chalet 5 years ago
parent
commit
fca90bc03b
  1. 2
      src/OpenIddict.Server/OpenIddictServerHandlers.Authentication.cs

2
src/OpenIddict.Server/OpenIddictServerHandlers.Authentication.cs

@ -1416,7 +1416,7 @@ namespace OpenIddict.Server
// Reject requests that specify a response_type for which no permission was granted.
if (!await HasPermissionAsync(context.Request.GetResponseTypes()))
{
context.Logger.LogError(SR.GetResourceString(SR.ID6081), context.ClientId, context.Request.ResponseType);
context.Logger.LogError(SR.GetResourceString(SR.ID6181), context.ClientId, context.Request.ResponseType);
context.Reject(
error: Errors.UnauthorizedClient,

Loading…
Cancel
Save