IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

Decrease log level for failed user login

Open RakhmatovR opened this issue 9 years ago • 5 comments

Issue

There was an issue in Identity Server 3 about log level in TokenRequestValidator. I have the same problem at Identity Server 4, and it would be nice to decrease log level about failed user login to Warning or lower. Or maybe someone can suggest how to do it from my side?

RakhmatovR avatar Nov 13 '17 10:11 RakhmatovR

Which exact message are we looking for?

leastprivilege avatar Nov 13 '17 10:11 leastprivilege

@leastprivilege https://github.com/IdentityServer/IdentityServer4/blob/dev/src/IdentityServer4/Validation/TokenRequestValidator.cs

420 line:

LogError("User authentication failed: {error}", errorDescription ?? resourceOwnerContext.Result.Error);

RakhmatovR avatar Nov 13 '17 10:11 RakhmatovR

https://github.com/IdentityServer/IdentityServer4/blob/3d738e96263d3b2728bdde9474715d9c392b2875/src/IdentityServer4/Validation/TokenRequestValidator.cs#L413-L420

OK - we'll discuss this. @brockallen

leastprivilege avatar Nov 13 '17 11:11 leastprivilege

It would be neat to dial down some of the messages in the TokenValidator as well; I'd not have things like 'token expired' as errors.

Thanks!

ssarj avatar Nov 29 '17 01:11 ssarj

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 13 '20 21:01 lock[bot]