Browse Source

Update the OpenIddict server Data Protection handlers to use the appropriate principal properties

pull/837/head
Kévin Chalet 6 years ago
parent
commit
91ea2d7276
  1. 4
      src/OpenIddict.Server.DataProtection/OpenIddictServerDataProtectionHandlers.cs

4
src/OpenIddict.Server.DataProtection/OpenIddictServerDataProtectionHandlers.cs

@ -853,7 +853,7 @@ namespace OpenIddict.Server.DataProtection
context.Logger.LogTrace("The authorization code '{Identifier}' was successfully created and the " + context.Logger.LogTrace("The authorization code '{Identifier}' was successfully created and the " +
"following JWT payload was attached to the OpenID Connect response: {Payload}. " + "following JWT payload was attached to the OpenID Connect response: {Payload}. " +
"The principal used to create the token contained the following claims: {Claims}.", "The principal used to create the token contained the following claims: {Claims}.",
context.AccessTokenPrincipal.GetClaim(Claims.JwtId), context.AuthorizationCodePrincipal.GetClaim(Claims.JwtId),
context.Response.Code, context.AuthorizationCodePrincipal.Claims); context.Response.Code, context.AuthorizationCodePrincipal.Claims);
return default; return default;
@ -919,7 +919,7 @@ namespace OpenIddict.Server.DataProtection
context.Logger.LogTrace("The refresh token '{Identifier}' was successfully created and the " + context.Logger.LogTrace("The refresh token '{Identifier}' was successfully created and the " +
"following JWT payload was attached to the OpenID Connect response: {Payload}. " + "following JWT payload was attached to the OpenID Connect response: {Payload}. " +
"The principal used to create the token contained the following claims: {Claims}.", "The principal used to create the token contained the following claims: {Claims}.",
context.AccessTokenPrincipal.GetClaim(Claims.JwtId), context.RefreshTokenPrincipal.GetClaim(Claims.JwtId),
context.Response.RefreshToken, context.RefreshTokenPrincipal.Claims); context.Response.RefreshToken, context.RefreshTokenPrincipal.Claims);
return default; return default;

Loading…
Cancel
Save