Class OneTimeTokenReactiveAuthenticationManager
java.lang.Object
org.springframework.security.authentication.ott.reactive.OneTimeTokenReactiveAuthenticationManager
- All Implemented Interfaces:
ReactiveAuthenticationManager
public final class OneTimeTokenReactiveAuthenticationManager
extends Object
implements ReactiveAuthenticationManager
A
ReactiveAuthenticationManager for one time tokens.- Since:
- 6.4
-
Constructor Summary
ConstructorsConstructorDescriptionOneTimeTokenReactiveAuthenticationManager(ReactiveOneTimeTokenService oneTimeTokenService, ReactiveUserDetailsService userDetailsService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Authentication> authenticate(Authentication authentication) Attempts to authenticate the providedAuthenticationvoidsetUserDetailsChecker(UserDetailsChecker userDetailsChecker) Use thisUserDetailsCheckerto verify the status of the loadedUserDetailsafter authentication.
-
Constructor Details
-
OneTimeTokenReactiveAuthenticationManager
public OneTimeTokenReactiveAuthenticationManager(ReactiveOneTimeTokenService oneTimeTokenService, ReactiveUserDetailsService userDetailsService)
-
-
Method Details
-
authenticate
Description copied from interface:ReactiveAuthenticationManagerAttempts to authenticate the providedAuthentication- Specified by:
authenticatein interfaceReactiveAuthenticationManager- Parameters:
authentication- theAuthenticationto test- Returns:
- if authentication is successful an
Authenticationis returned. If authentication cannot be determined, an empty Mono is returned. If authentication fails, a Mono error is returned.
-
setUserDetailsChecker
Use thisUserDetailsCheckerto verify the status of the loadedUserDetailsafter authentication.By default, no checks are performed, keeping this manager's behavior consistent with earlier versions of Spring Security. To reject authentication for accounts that are locked, disabled, or expired, provide a
AccountStatusUserDetailsChecker.- Parameters:
userDetailsChecker- theUserDetailsCheckerto use- Since:
- 7.2
-