Class BasicAuthAuthenticationFetcher
- java.lang.Object
-
- io.micronaut.security.authentication.BasicAuthAuthenticationFetcher
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered,AuthenticationFetcher
@Requires(property="micronaut.security.basic-auth.enabled", notEquals="false") @Singleton public class BasicAuthAuthenticationFetcher extends java.lang.Object implements AuthenticationFetcherAn implementation ofAuthenticationFetcherthat decodes a username and password from the Authorization header and authenticates the credentials against anyAuthenticationProviders available.
-
-
Constructor Summary
Constructors Constructor Description BasicAuthAuthenticationFetcher(Authenticator authenticator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<Authentication>fetchAuthentication(io.micronaut.http.HttpRequest<?> request)Attempts to read anAuthenticationfrom aHttpRequestbeing executed.
-
-
-
Constructor Detail
-
BasicAuthAuthenticationFetcher
public BasicAuthAuthenticationFetcher(Authenticator authenticator)
- Parameters:
authenticator- The authenticator to authenticate the credentials
-
-
Method Detail
-
fetchAuthentication
public org.reactivestreams.Publisher<Authentication> fetchAuthentication(io.micronaut.http.HttpRequest<?> request)
Description copied from interface:AuthenticationFetcherAttempts to read anAuthenticationfrom aHttpRequestbeing executed.- Specified by:
fetchAuthenticationin interfaceAuthenticationFetcher- Parameters:
request-HttpRequestbeing executed.- Returns:
Authenticationif found
-
-