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

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 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 an Authentication from a HttpRequest being executed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.order.Ordered

        getOrder
    • Constructor Detail

      • BasicAuthAuthenticationFetcher

        public BasicAuthAuthenticationFetcher​(Authenticator authenticator)
        Parameters:
        authenticator - The authenticator to authenticate the credentials