public class ReactivePreAuthenticatedAuthenticationManager extends java.lang.Object implements ReactiveAuthenticationManager
PreAuthenticatedAuthenticationProvider
This manager receives a PreAuthenticatedAuthenticationToken
, checks that associated account is not disabled,
expired, or blocked, and returns new authenticated PreAuthenticatedAuthenticationToken
.
If no UserDetailsChecker
is provided, a default AccountStatusUserDetailsChecker
will be
created.Constructor and Description |
---|
ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService) |
ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService,
UserDetailsChecker userDetailsChecker) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Authentication> |
authenticate(Authentication authentication)
Attempts to authenticate the provided
Authentication |
public ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService)
public ReactivePreAuthenticatedAuthenticationManager(ReactiveUserDetailsService userDetailsService, UserDetailsChecker userDetailsChecker)
public reactor.core.publisher.Mono<Authentication> authenticate(Authentication authentication)
ReactiveAuthenticationManager
Authentication
authenticate
in interface ReactiveAuthenticationManager
authentication
- the Authentication
to testAuthentication
is returned. If
authentication cannot be determined, an empty Mono is returned. If authentication
fails, a Mono error is returned.