Class ReactivePreAuthenticatedAuthenticationManager
- java.lang.Object
-
- org.springframework.security.web.server.authentication.ReactivePreAuthenticatedAuthenticationManager
-
- All Implemented Interfaces:
ReactiveAuthenticationManager
public class ReactivePreAuthenticatedAuthenticationManager extends java.lang.Object implements ReactiveAuthenticationManager
Reactive version ofPreAuthenticatedAuthenticationProvider
This manager receives aPreAuthenticatedAuthenticationToken
, checks that associated account is not disabled, expired, or blocked, and returns new authenticatedPreAuthenticatedAuthenticationToken
. If noUserDetailsChecker
is provided, a defaultAccountStatusUserDetailsChecker
will be created.- Since:
- 5.2
-
-
Constructor Summary
Constructors Constructor Description ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService)
ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService, UserDetailsChecker userDetailsChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Authentication>
authenticate(Authentication authentication)
Attempts to authenticate the providedAuthentication
-
-
-
Constructor Detail
-
ReactivePreAuthenticatedAuthenticationManager
public ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService)
-
ReactivePreAuthenticatedAuthenticationManager
public ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService, UserDetailsChecker userDetailsChecker)
-
-
Method Detail
-
authenticate
public reactor.core.publisher.Mono<Authentication> authenticate(Authentication authentication)
Description copied from interface:ReactiveAuthenticationManager
Attempts to authenticate the providedAuthentication
- Specified by:
authenticate
in interfaceReactiveAuthenticationManager
- Parameters:
authentication
- theAuthentication
to test- Returns:
- if authentication is successful an
Authentication
is returned. If authentication cannot be determined, an empty Mono is returned. If authentication fails, a Mono error is returned.
-
-