Class Auth0AuthenticationModule

java.lang.Object
com.kingsrook.qqq.backend.core.modules.authentication.implementations.Auth0AuthenticationModule
All Implemented Interfaces:
QAuthenticationModuleInterface

public class Auth0AuthenticationModule extends Object implements QAuthenticationModuleInterface
QQQ AuthenticationModule for working with Auth0. createSession can be called with the following fields in its context: System-User session use-case: 1: Takes in an "accessToken" (but doesn't store a userSession record). 1b: legacy frontend use-case does the same as system-user! Web User session use-cases: 2: creates a new session (userSession record) by taking an "accessToken" 3: looks up an existing session (userSession record) by taking a "sessionUUID" 4: takes an "apiKey" (looked up in metaData.AccessTokenTableName - refreshing accessToken with auth0 if needed). 5: takes a "basicAuthString" (encoded username:password), which make a new accessToken in auth0