Class SessionAuthenticationFetcher

java.lang.Object
io.micronaut.security.session.SessionAuthenticationFetcher
All Implemented Interfaces:
io.micronaut.core.order.Ordered, AuthenticationFetcher

@Singleton public class SessionAuthenticationFetcher extends Object implements AuthenticationFetcher
Attempts to retrieve an instance of Authentication from Session.
Since:
1.0
Author:
Sergio del Amo, Graeme Rocher
  • Field Details

    • ORDER

      public static final Integer ORDER
      The order of the fetcher.
  • Constructor Details

    • SessionAuthenticationFetcher

      public SessionAuthenticationFetcher()
  • Method Details

    • fetchAuthentication

      public org.reactivestreams.Publisher<Authentication> fetchAuthentication(io.micronaut.http.HttpRequest<?> request)
      Description copied from interface: AuthenticationFetcher
      Attempts to read an Authentication from a HttpRequest being executed.
      Specified by:
      fetchAuthentication in interface AuthenticationFetcher
      Parameters:
      request - HttpRequest being executed.
      Returns:
      Authentication if found
    • getOrder

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