Class BasicAuthAuthenticationFetcher

java.lang.Object
io.micronaut.security.authentication.BasicAuthAuthenticationFetcher
All Implemented Interfaces:
io.micronaut.core.order.Ordered, AuthenticationFetcher<io.micronaut.http.HttpRequest<?>>

@Requires(classes=io.micronaut.http.HttpRequest.class) @Requires(property="micronaut.security.basic-auth.enabled",notEquals="false") @Singleton public class BasicAuthAuthenticationFetcher extends Object implements AuthenticationFetcher<io.micronaut.http.HttpRequest<?>>
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<io.micronaut.http.HttpRequest<?>> authenticator)
      Parameters:
      authenticator - The authenticator to authenticate the credentials
  • Method Details