Interface ExecutorAuthenticationProvider<T,I,S>
- Type Parameters:
T- Request Context TypeI- Authentication Request Identity TypeS- Authentication Request Secret Type
- All Superinterfaces:
AuthenticationProvider<T,,I, S> io.micronaut.core.order.Ordered
- All Known Subinterfaces:
HttpRequestExecutorAuthenticationProvider<B>
An
AuthenticationProvider which forces you to define the executor to be used.
Blocking implementations of AuthenticationProvider should use this API.- Since:
- 4.5.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptiondefault StringThe name of theExecutorServicebean on whichAuthenticationProvider.authenticate(Object, AuthenticationRequest)is invoked.Methods inherited from interface io.micronaut.security.authentication.provider.AuthenticationProvider
authenticate, authenticateMethods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
getExecutorName
The name of theExecutorServicebean on whichAuthenticationProvider.authenticate(Object, AuthenticationRequest)is invoked. Any executor name is honored, not onlyTaskExecutors.BLOCKINGorTaskExecutors.IO; the provider is never invoked on the thread that subscribes to the authentication publisher, such as the server event loop. If no executor bean with that name exists, theTaskExecutors.BLOCKINGexecutor is used instead and a warning is logged.- Returns:
- The executor name where the code
AuthenticationProvider.authenticate(Object, AuthenticationRequest)will be executed.
-