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 Object implements AuthenticationFetcher
An implementation of AuthenticationFetcher that decodes a username and password from the Authorization header and authenticates the credentials against any AuthenticationProviders available.
  • Constructor Details

    • BasicAuthAuthenticationFetcher

      public BasicAuthAuthenticationFetcher(Authenticator authenticator)
      Parameters:
      authenticator - The authenticator to authenticate the credentials
  • Method Details