Class TokenAuthenticationFetcher

  • All Implemented Interfaces:
    io.micronaut.core.order.Ordered, AuthenticationFetcher

    @Singleton
    public class TokenAuthenticationFetcher
    extends java.lang.Object
    implements AuthenticationFetcher
    Attempts to retrieve a token form the HttpRequest and if existing validated. It uses a TokenResolver and the list of TokenValidator registered in the ApplicationContext.
    Since:
    1.0
    Author:
    Sergio del Amo, Graeme Rocher
    • Field Detail

      • ORDER

        public static final java.lang.Integer ORDER
        The order of the fetcher.
      • tokenValidators

        protected final java.util.Collection<TokenValidator> tokenValidators
      • eventPublisher

        protected final io.micronaut.context.event.ApplicationEventPublisher eventPublisher
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface io.micronaut.core.order.Ordered