Skip to content

Commit e2f6ad6

Browse files
authored
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
1 parent a9482d1 commit e2f6ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNetCore.Authentication.JwtBearer/LoggingExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static LoggingExtensions()
1616
_tokenValidationFailed = LoggerMessage.Define<string>(
1717
eventId: 1,
1818
logLevel: LogLevel.Information,
19-
formatString: "Failed to validate the token {Token}.");
19+
formatString: "Failed to validate the token {Token}");
2020
_tokenValidationSucceeded = LoggerMessage.Define(
2121
eventId: 2,
2222
logLevel: LogLevel.Information,

0 commit comments

Comments
 (0)