TYPO3  7.6
Public Member Functions | Public Attributes | List of all members
AbstractAuthenticationService Class Reference
Inheritance diagram for AbstractAuthenticationService:
AbstractService SaltedPasswordService AuthenticationService RsaAuthService

Public Member Functions

 initAuth ($mode, $loginData, $authInfo, $pObj)
 
 compareUident (array $user, array $loginData, $passwordCompareStrategy= '')
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename= '', $recuid= '', $recpid= '')
 
 fetchUserRecord ($username, $extraWhere= '', $dbUserSetup= '')
 
- Public Member Functions inherited from AbstractService
 getServiceInfo ()
 
 getServiceKey ()
 
 getServiceTitle ()
 
 getServiceOption ($optionName, $defaultValue= '', $includeDefaultConfig=true)
 
 devLog ($msg, $severity=0, $dataVar=false)
 
 errorPush ($errNum=T3_ERR_SV_GENERAL, $errMsg= 'Unspecified error occurred')
 
 errorPull ()
 
 getLastError ()
 
 getLastErrorMsg ()
 
 getErrorMsgArray ()
 
 getLastErrorArray ()
 
 resetErrors ()
 
 checkExec ($progList)
 
 deactivateService ()
 
 checkInputFile ($absFile)
 
 readFile ($absFile, $length=0)
 
 writeFile ($content, $absFile= '')
 
 tempFile ($filePrefix)
 
 registerTempFile ($absFile)
 
 unlinkTempFiles ()
 
 setInput ($content, $type= '')
 
 setInputFile ($absFile, $type= '')
 
 getInput ()
 
 getInputFile ($createFile= '')
 
 setOutputFile ($absFile)
 
 getOutput ()
 
 getOutputFile ($absFile= '')
 
 init ()
 
 reset ()
 
 __destruct ()
 

Public Attributes

 $pObj
 
 $mode
 
 $login = array()
 
 $authInfo = array()
 
 $db_user = array()
 
 $db_groups = array()
 
 $writeAttemptLog = false
 
 $writeDevLog = false
 
- Public Attributes inherited from AbstractService
 $info = array()
 
 $error = array()
 
 $writeDevLog = false
 
 $out = ''
 
 $inputFile = ''
 
 $inputContent = ''
 
 $inputType = ''
 
 $outputFile = ''
 
 $tempFiles = array()
 

Additional Inherited Members

- Protected Attributes inherited from AbstractService
 $shutdownRegistry = array()
 
 $prefixId = ''
 

Detailed Description

Authentication services class

Definition at line 23 of file AbstractAuthenticationService.php.

Member Function Documentation

compareUident ( array  $user,
array  $loginData,
  $passwordCompareStrategy = '' 
)

Check the login data with the user record data for builtin login methods

Parameters
array$userUser data array
array$loginDataLogin data array
string$passwordCompareStrategyPassword compare strategy
Returns
bool TRUE if login data matched

Definition at line 111 of file AbstractAuthenticationService.php.

Referenced by AuthenticationService\authUser().

fetchUserRecord (   $username,
  $extraWhere = '',
  $dbUserSetup = '' 
)

Get a user from DB by username

Parameters
string$usernameUser name
string$extraWhereAdditional WHERE clause: " AND ...
array | string$dbUserSetupUser db table definition, or empty string for $this->db_user
Returns
mixed User array or FALSE

Definition at line 145 of file AbstractAuthenticationService.php.

References AbstractAuthenticationService\$db_user.

Referenced by AuthenticationService\getUser().

initAuth (   $mode,
  $loginData,
  $authInfo,
  $pObj 
)

Initialize authentication service

Parameters
string$modeSubtype of the service which is used to call the service.
array$loginDataSubmitted login form data
array$authInfoInformation array. Holds submitted form data etc.
AbstractUserAuthentication$pObjParent object
Returns
void

Definition at line 90 of file AbstractAuthenticationService.php.

References AbstractAuthenticationService\$authInfo, AbstractAuthenticationService\$mode, AbstractAuthenticationService\$pObj, and AbstractService\getServiceOption().

writelog (   $type,
  $action,
  $error,
  $details_nr,
  $details,
  $data,
  $tablename = '',
  $recuid = '',
  $recpid = '' 
)

Writes to log database table in pObj

Parameters
int$typedenotes which module that has submitted the entry. This is the current list: 1=tce_db; 2=tce_file; 3=system (eg. sys_history save); 4=modules; 254=Personal settings changed; 255=login / out action: 1=login, 2=logout, 3=failed login (+ errorcode 3), 4=failure_warning_email sent
int$actiondenotes which specific operation that wrote the entry (eg. 'delete', 'upload', 'update' and so on...). Specific for each $type. Also used to trigger update of the interface. (see the log-module for the meaning of each number !!)
int$errorflag. 0 = message, 1 = error (user problem), 2 = System Error (which should not happen), 3 = security notice (admin)
int$details_nrThe message number. Specific for each $type and $action. in the future this will make it possible to translate error messages to other languages
string$detailsDefault text that follows the message
array$dataData that follows the log. Might be used to carry special information. If an array the first 5 entries (0-4) will be sprintf'ed the details-text...
string$tablenameSpecial field used by tce_main.php. These ($tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.)
int | string$recuidSpecial field used by tce_main.php. These ($tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.)
int | string$recpidSpecial field used by tce_main.php. These ($tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.)
Returns
void

Definition at line 130 of file AbstractAuthenticationService.php.

References AbstractService\$error.

Referenced by AuthenticationService\authUser(), SaltedPasswordService\authUser(), and AuthenticationService\getUser().

Member Data Documentation

$authInfo = array()
$db_groups = array()

Definition at line 65 of file AbstractAuthenticationService.php.

$db_user = array()
$login = array()

Definition at line 44 of file AbstractAuthenticationService.php.

$mode
$pObj
$writeAttemptLog = false

Definition at line 72 of file AbstractAuthenticationService.php.

$writeDevLog = false

Definition at line 79 of file AbstractAuthenticationService.php.