You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent disabled user from logging in on reactive applicationsΒ #7113
In servlet applications, if a user account is disabled, locked or expired, then the user is not permitted to log in.
In reactive applications, the user is still permitted to log in regardless of their account status.
The reactive applications should behave like the servlet application by default, and prevent disabled, locked or expired accounts from logging in.
This functionality is handled by the pre and post authentication checks in the AbstractUserDetailsAuthenticationProvider for servlet applications.
Reactive applications do not have pre authentication checks and have a noop post authentication check, as seen in UserDetailsRepositoryReactiveAuthenticationManager.
Instead, they should have the same checks that the servlet applications have.
Additionally, there should be a higher level class, similar to AbstractUserDetailsAuthenticationProvider for reactive applications, where these checks are defined.
Activity
eleftherias commentedon Jul 17, 2019
This functionality is handled by the pre and post authentication checks in the
AbstractUserDetailsAuthenticationProviderfor servlet applications.Reactive applications do not have pre authentication checks and have a noop post authentication check, as seen in
UserDetailsRepositoryReactiveAuthenticationManager.Instead, they should have the same checks that the servlet applications have.
Additionally, there should be a higher level class, similar to
AbstractUserDetailsAuthenticationProviderfor reactive applications, where these checks are defined.Prevent authentication when user is inactive for reactive apps
Prevent authentication when user is inactive for reactive apps