Can we pass the entered username to the URL of the authentication error in spring security?

Can we pass the entered username to the URL of the authentication error in spring security in case of authentication failure by canceling the password?

+4
source share
1 answer

Assuming you are asking how we get the username in case authentication fails, it is available in the special spring security constant SPRING_SECURITY_LAST_USERNAME.

This SO discussion can be a helpful link.

+5
source

Source: https://habr.com/ru/post/1346124/


All Articles