public class LdapAuthenticationProvider extends java.lang.Object implements AuthenticationProvider, java.io.Closeable
LdapConfiguration
. One provider will be created for each configuration.Constructor and Description |
---|
LdapAuthenticationProvider(LdapConfiguration configuration,
LdapSearchService ldapSearchService,
ContextBuilder contextBuilder,
ContextAuthenticationMapper contextAuthenticationMapper,
LdapGroupProcessor ldapGroupProcessor,
java.util.concurrent.ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<AuthenticationResponse> |
authenticate(io.micronaut.http.HttpRequest<?> httpRequest,
AuthenticationRequest<?,?> authenticationRequest)
Authenticates a user with the given request.
|
void |
close() |
public LdapAuthenticationProvider(LdapConfiguration configuration, LdapSearchService ldapSearchService, ContextBuilder contextBuilder, ContextAuthenticationMapper contextAuthenticationMapper, LdapGroupProcessor ldapGroupProcessor, @Named(value="io") java.util.concurrent.ExecutorService executorService)
configuration
- The configuration to use to authenticateldapSearchService
- The search servicecontextBuilder
- The context buildercontextAuthenticationMapper
- The authentication mapperldapGroupProcessor
- The group processorexecutorService
- Executor Servicepublic org.reactivestreams.Publisher<AuthenticationResponse> authenticate(io.micronaut.http.HttpRequest<?> httpRequest, AuthenticationRequest<?,?> authenticationRequest)
AuthenticationProvider
Authentication
.
Publishers MUST emit cold observables! This method will be called for
all authenticators for each authentication request and it is assumed no work
will be done until the publisher is subscribed to.authenticate
in interface AuthenticationProvider
httpRequest
- The http requestauthenticationRequest
- The credentials to authenticatepublic void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable