Class BasicAuthAuthenticationFetcher<B>

java.lang.Object
io.micronaut.security.authentication.BasicAuthAuthenticationFetcher<B>
Type Parameters:
B - The HTTP Request Body type
All Implemented Interfaces:
io.micronaut.core.order.Ordered, AuthenticationFetcher<io.micronaut.http.HttpRequest<B>>

@Requires(classes=io.micronaut.http.HttpRequest.class) @Requires(property="micronaut.security.basic-auth.enabled",notEquals="false") @Singleton public class BasicAuthAuthenticationFetcher<B> extends Object implements AuthenticationFetcher<io.micronaut.http.HttpRequest<B>>
An implementation of AuthenticationFetcher that decodes a username and password from the Authorization header and authenticates the credentials against any ReactiveAuthenticationProviders available.
  • Constructor Details

    • BasicAuthAuthenticationFetcher

      public BasicAuthAuthenticationFetcher(Authenticator<io.micronaut.http.HttpRequest<B>> authenticator)
      Parameters:
      authenticator - The authenticator to authenticate the credentials
  • Method Details