-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
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
Default Log In Page should always be generic message #16484
Comments
Hi @rwinch |
Thanks, @Tejas-Teju! Looking forward to another PR from you. |
Need your inputs
We can even log the error at |
The change is to not check for an exception message. Because of that, the answer is always "Invalid Credentials". That means this: String errorMsg = loginError ? getLoginErrorMessage(request) : "Invalid credentials"; should be able to change to: String errorMsg = "Invalid Credentials"; and The format for failure logs that we usually follow is:
For example,
As for
for the end and a more contextual message for the |
Good idea, @Tejas-Teju, please go ahead an just focus on |
Thanks @jzheaux There was a test case for getting the error message in Sure, I'll raise a separate ticket for logging. |
The error message on the default log in pages should always be a generic message so that it does not have any information leakage when AuthenticationException.message includes details about the failure. To help developers, we should also ensure that the failure is logged at the debug level (likely in the AuthenticationManager so that it happens for all failures).
The text was updated successfully, but these errors were encountered: