Class MockAuthenticationModule
java.lang.Object
com.kingsrook.qqq.backend.core.modules.authentication.implementations.MockAuthenticationModule
- All Implemented Interfaces:
QAuthenticationModuleInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAutomatedSessionForUser(QInstance qInstance, Serializable userId) Establish automation grants through the owner's configured session customizer.createSession(QInstance qInstance, Map<String, String> context) getLoginRedirectUrl(String originalUrl) booleanisSessionValid(QInstance instance, QSession session) booleanKeep development sessions stable across browser requests.Methods 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
createSession, logout
-
Constructor Details
-
MockAuthenticationModule
public MockAuthenticationModule()
-
-
Method Details
-
createSession
public QSession createSession(QInstance qInstance, Map<String, String> context) throws QAuthenticationException- Specified by:
createSessionin interfaceQAuthenticationModuleInterface- Throws:
QAuthenticationException
-
createAutomatedSessionForUser
public QSession createAutomatedSessionForUser(QInstance qInstance, Serializable userId) throws QAuthenticationException Establish automation grants through the owner's configured session customizer.- Specified by:
createAutomatedSessionForUserin interfaceQAuthenticationModuleInterface- Throws:
QAuthenticationException
-
usesSessionIdCookie
public boolean usesSessionIdCookie()Keep development sessions stable across browser requests.- Specified by:
usesSessionIdCookiein interfaceQAuthenticationModuleInterface
-
isSessionValid
- Specified by:
isSessionValidin interfaceQAuthenticationModuleInterface
-
getLoginRedirectUrl
- Specified by:
getLoginRedirectUrlin interfaceQAuthenticationModuleInterface
-