Class TableBasedAuthenticationModule
java.lang.Object
com.kingsrook.qqq.backend.core.modules.authentication.implementations.TableBasedAuthenticationModule
- All Implemented Interfaces:
QAuthenticationModuleInterface
public class TableBasedAuthenticationModule
extends Object
implements QAuthenticationModuleInterface
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSession(QInstance qInstance, Map<String, String> context) static StateProviderInterfaceLoad an instance of the appropriate state providerbooleanisSessionValid(QInstance instance, QSession session) voidEnd a session: delete its row from the session table, so neither cookie can resume it, and forget its last validation time.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kingsrook.qqq.backend.core.modules.authentication.QAuthenticationModuleInterface
createAutomatedSessionForUser, createSession, getLoginRedirectUrl
-
Field Details
-
ID_TOKEN_VALIDATION_INTERVAL_SECONDS
public static final int ID_TOKEN_VALIDATION_INTERVAL_SECONDS//////////////////////////////////////////////////////////////////////////////////////////////////////////- See Also:
-
SESSION_ID_KEY
- See Also:
-
SESSION_UUID_KEY
- See Also:
-
BASIC_AUTH_KEY
- See Also:
-
SESSION_ID_NOT_PROVIDED_ERROR
- See Also:
-
-
Constructor Details
-
TableBasedAuthenticationModule
public TableBasedAuthenticationModule()
-
-
Method Details
-
usesSessionIdCookie
public boolean usesSessionIdCookie()- Specified by:
usesSessionIdCookiein interfaceQAuthenticationModuleInterface
-
createSession
public QSession createSession(QInstance qInstance, Map<String, String> context) throws QAuthenticationException- Specified by:
createSessionin interfaceQAuthenticationModuleInterface- Throws:
QAuthenticationException
-
isSessionValid
- Specified by:
isSessionValidin interfaceQAuthenticationModuleInterface
-
logout
End a session: delete its row from the session table, so neither cookie can resume it, and forget its last validation time.- Specified by:
logoutin interfaceQAuthenticationModuleInterface- Parameters:
qInstance- the QInstance (provided for implementations that need it)sessionUUID- the session UUID to invalidate
-
getStateProvider
Load an instance of the appropriate state provider
-