Updated logging extension to remove the period on ValidationFailed
_tokenValidationFailed format string includes the JWT token followed by a period, which if a dev troubleshooting copies incorrectly to the EOL will make the JWT invalid. Current: Failed to validate the token eyJhbGc.......HCwFmw. Proposed: Failed to validate the token eyJhbGc.......HCwFmw
This commit is contained in:
parent
a9482d1d03
commit
e2f6ad6169
|
|
@ -16,7 +16,7 @@ namespace Microsoft.Extensions.Logging
|
|||
_tokenValidationFailed = LoggerMessage.Define<string>(
|
||||
eventId: 1,
|
||||
logLevel: LogLevel.Information,
|
||||
formatString: "Failed to validate the token {Token}.");
|
||||
formatString: "Failed to validate the token {Token}");
|
||||
_tokenValidationSucceeded = LoggerMessage.Define(
|
||||
eventId: 2,
|
||||
logLevel: LogLevel.Information,
|
||||
|
|
|
|||
Loading…
Reference in New Issue