Interface StatelessClient

All Known Implementing Classes:
AxelorApiKeyClient, AxelorDirectBasicAuthClient

public interface StatelessClient
Marker for direct clients that authenticate from the request itself and must never cause a session to be created.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    disableSessionCreation(org.pac4j.core.context.WebContext context)
    Prevents any session from being created while handling the current request.
    boolean
    hasCredentials(org.pac4j.core.context.WebContext context)
    Whether this client can extract credentials from the given request.
  • Method Details

    • hasCredentials

      boolean hasCredentials(org.pac4j.core.context.WebContext context)
      Whether this client can extract credentials from the given request.
      Parameters:
      context - the web context
      Returns:
      true if the request carries credentials for this client
    • disableSessionCreation

      default void disableSessionCreation(org.pac4j.core.context.WebContext context)
      Prevents any session from being created while handling the current request.
      Parameters:
      context - the web context