TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Sv\AbstractAuthenticationService Class Reference
Inheritance diagram for TYPO3\CMS\Sv\AbstractAuthenticationService:
TYPO3\CMS\Core\Service\AbstractService tx_sv_authbase TYPO3\CMS\Saltedpasswords\SaltedPasswordService TYPO3\CMS\Sv\AuthenticationService tx_saltedpasswords_sv1 tx_sv_auth TYPO3\CMS\Rsaauth\RsaAuthService tx_rsaauth_sv1

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 TYPO3\CMS\Core\Service\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 TYPO3\CMS\Core\Service\AbstractService
 $info = array()
 
 $error = array()
 
 $writeDevLog = FALSE
 
 $out = ''
 
 $inputFile = ''
 
 $inputContent = ''
 
 $inputType = ''
 
 $outputFile = ''
 
 $tempFiles = array()
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Core\Service\AbstractService
 $shutdownRegistry = array()
 
 $prefixId = ''
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Authentication services class

Author
René Fritz r.fri.nosp@m.tz@c.nosp@m.olorc.nosp@m.ube..nosp@m.de

Definition at line 22 of file AbstractAuthenticationService.php.

Member Function Documentation

◆ compareUident()

TYPO3\CMS\Sv\AbstractAuthenticationService::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
boolean TRUE if login data matched
Todo:
Define visibility

Definition at line 105 of file AbstractAuthenticationService.php.

Referenced by TYPO3\CMS\Sv\AuthenticationService\authUser().

◆ fetchUserRecord()

TYPO3\CMS\Sv\AbstractAuthenticationService::fetchUserRecord (   $username,
  $extraWhere = '',
  $dbUserSetup = '' 
)

Get a user from DB by username

Parameters
string$usernameUser name
string$extraWhereAdditional WHERE clause: " AND ...
array$dbUserSetupUser db table definition: $this->db_user
Returns
mixed User array or FALSE
Todo:
Define visibility

Definition at line 154 of file AbstractAuthenticationService.php.

References TYPO3\CMS\Sv\AbstractAuthenticationService\$db_user.

Referenced by TYPO3\CMS\Sv\AuthenticationService\getUser().

◆ initAuth()

TYPO3\CMS\Sv\AbstractAuthenticationService::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.
object$pObjParent object
Returns
void
Todo:
Define visibility

Definition at line 84 of file AbstractAuthenticationService.php.

References TYPO3\CMS\Sv\AbstractAuthenticationService\$authInfo, TYPO3\CMS\Sv\AbstractAuthenticationService\$mode, TYPO3\CMS\Sv\AbstractAuthenticationService\$pObj, and TYPO3\CMS\Core\Service\AbstractService\getServiceOption().

◆ writelog()

TYPO3\CMS\Sv\AbstractAuthenticationService::writelog (   $type,
  $action,
  $error,
  $details_nr,
  $details,
  $data,
  $tablename = '',
  $recuid = '',
  $recpid = '' 
)

Writes to log database table in pObj

Parameters
integer$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
integer$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 !!)
integer$errorflag. 0 = message, 1 = error (user problem), 2 = System Error (which should not happen), 3 = security notice (admin)
integer$details_nrThe message number. Specific for each $type and $action. in the future this will make it possible to translate errormessages 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.)
integer$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.)
integer$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
Todo:
Define visibility

Definition at line 134 of file AbstractAuthenticationService.php.

References TYPO3\CMS\Core\Service\AbstractService\$error.

Referenced by TYPO3\CMS\Sv\AuthenticationService\authUser(), TYPO3\CMS\Saltedpasswords\SaltedPasswordService\authUser(), and TYPO3\CMS\Sv\AuthenticationService\getUser().

Member Data Documentation

◆ $authInfo

TYPO3\CMS\Sv\AbstractAuthenticationService::$authInfo = array()
Todo:
Define visibility

Definition at line 48 of file AbstractAuthenticationService.php.

Referenced by TYPO3\CMS\Sv\AbstractAuthenticationService\initAuth().

◆ $db_groups

TYPO3\CMS\Sv\AbstractAuthenticationService::$db_groups = array()
Todo:
Define visibility

Definition at line 60 of file AbstractAuthenticationService.php.

◆ $db_user

TYPO3\CMS\Sv\AbstractAuthenticationService::$db_user = array()

◆ $login

TYPO3\CMS\Sv\AbstractAuthenticationService::$login = array()
Todo:
Define visibility

Definition at line 42 of file AbstractAuthenticationService.php.

◆ $mode

TYPO3\CMS\Sv\AbstractAuthenticationService::$mode

◆ $pObj

TYPO3\CMS\Sv\AbstractAuthenticationService::$pObj

◆ $writeAttemptLog

TYPO3\CMS\Sv\AbstractAuthenticationService::$writeAttemptLog = FALSE
Todo:
Define visibility

Definition at line 66 of file AbstractAuthenticationService.php.

◆ $writeDevLog

TYPO3\CMS\Sv\AbstractAuthenticationService::$writeDevLog = FALSE
Todo:
Define visibility

Definition at line 72 of file AbstractAuthenticationService.php.