Package com.axelor.auth.pac4j.local
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 TypeMethodDescriptiondefault voiddisableSessionCreation(org.pac4j.core.context.WebContext context) Prevents any session from being created while handling the current request.booleanhasCredentials(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:
trueif 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
-