We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug
When login fails, 2 separate error messages are fired off: 1:
[error] o.t.t.s.TOTPAuthSrv [00000190|0773abb5] Authentication failure org.thp.scalligraph.AuthenticationError: Operation not supported at org.thp.scalligraph.auth.AuthSrv.authenticate(AuthSrv.scala:55) at org.thp.scalligraph.auth.AuthSrv.authenticate$(AuthSrv.scala:52) at org.thp.scalligraph.auth.KeyAuthSrv.authenticate(KeyAuthSrv.scala:11) at org.thp.scalligraph.auth.MultiAuthSrv.$anonfun$authenticate$1(MultiAuthSrv.scala:71) at org.thp.scalligraph.auth.MultiAuthSrv$$anonfun$$nestedInanonfun$forAllAuthProvider$1$1.applyOrElse(MultiAuthSrv.scala:59) at org.thp.scalligraph.auth.MultiAuthSrv$$anonfun$$nestedInanonfun$forAllAuthProvider$1$1.applyOrElse(MultiAuthSrv.scala:57) at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:38) at scala.util.Failure.recoverWith(Try.scala:236) at org.thp.scalligraph.auth.MultiAuthSrv.$anonfun$forAllAuthProvider$1(MultiAuthSrv.scala:57) at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126)
2:
[warn] o.t.s.ErrorHandler [00000190|] POST /api/login returned 401: Authentication failure
Authentication failure should not be classified as an error, and will FP on logging platforms. Please suppress for log sanitation.
I believe the offending line is here:
TheHive/thehive-backend/app/services/KeyAuthSrv.scala
Line 41 in d3c15bb
If I'm reading this right, if password authentication fails it will go on to test key-based authentication, and fail there.
The text was updated successfully, but these errors were encountered:
Thanks guys!
Sorry, something went wrong.
rriclet
No branches or pull requests
Suppress Redundant Error Message on Authentication Failed
Request Type
Bug
Work Environment
Problem Description
When login fails, 2 separate error messages are fired off:
1:
2:
Authentication failure should not be classified as an error, and will FP on logging platforms. Please suppress for log sanitation.
Steps to Reproduce
Possible Solutions
I believe the offending line is here:
TheHive/thehive-backend/app/services/KeyAuthSrv.scala
Line 41 in d3c15bb
If I'm reading this right, if password authentication fails it will go on to test key-based authentication, and fail there.
The text was updated successfully, but these errors were encountered: