TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Rsaauth\RsaAuthService Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\RsaAuthService:
TYPO3\CMS\Sv\AuthenticationService TYPO3\CMS\Sv\AbstractAuthenticationService TYPO3\CMS\Core\Service\AbstractService

Public Member Functions

 processLoginData (array &$loginData, $passwordTransmissionStrategy)
 
 init ()
 
- Public Member Functions inherited from TYPO3\CMS\Sv\AuthenticationService
 processLoginData (array &$loginData, $passwordTransmissionStrategy)
 
 getUser ()
 
 authUser (array $user)
 
 getGroups ($user, $knownGroups)
 
 getSubGroups ($grList, $idList='', &$groups)
 
- Public Member Functions inherited from TYPO3\CMS\Sv\AbstractAuthenticationService
 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

 $extKey = 'rsaauth'
 
 $prefixId = 'tx_rsaauth_sv1'
 
 $scriptRelPath = 'Classes/RsaAuthService.php'
 
- Public Attributes inherited from TYPO3\CMS\Sv\AbstractAuthenticationService
 $pObj
 
 $mode
 
 $login = []
 
 $authInfo = []
 
 $db_user = []
 
 $db_groups = []
 
 $writeAttemptLog = false
 
 $writeDevLog = false
 
- Public Attributes inherited from TYPO3\CMS\Core\Service\AbstractService
 $info = []
 
 $error = []
 
 $writeDevLog = false
 
 $out = ''
 
 $inputFile = ''
 
 $inputContent = ''
 
 $inputType = ''
 
 $outputFile = ''
 
 $tempFiles = []
 

Protected Member Functions

 getRsaEncryptionDecoder ()
 
- Protected Member Functions inherited from TYPO3\CMS\Sv\AuthenticationService
 getDatabaseConnection ()
 

Protected Attributes

 $rsaEncryptionDecoder = null
 
- Protected Attributes inherited from TYPO3\CMS\Core\Service\AbstractService
 $shutdownRegistry = []
 
 $prefixId = ''
 

Detailed Description

Service "RSA authentication" for the "rsaauth" extension. This service will authenticate a user using hos password encoded with one time public key. It uses the standard TYPO3 service to do all dirty work. Firsts, it will decode the password and then pass it to the parent service ('sv'). This ensures that it always works, even if other TYPO3 internals change.

Definition at line 26 of file RsaAuthService.php.

Member Function Documentation

◆ getRsaEncryptionDecoder()

◆ init()

TYPO3\CMS\Rsaauth\RsaAuthService::init ( )

Initializes the service.

Returns
bool

Definition at line 94 of file RsaAuthService.php.

References TYPO3\CMS\Rsaauth\RsaAuthService\getRsaEncryptionDecoder().

◆ processLoginData()

TYPO3\CMS\Rsaauth\RsaAuthService::processLoginData ( array &  $loginData,
  $passwordTransmissionStrategy 
)

Process the submitted credentials. In this case decrypt the password if it is RSA encrypted.

Parameters
array$loginDataCredentials that are submitted and potentially modified by other services
string$passwordTransmissionStrategyKeyword of how the password has been hashed or encrypted before submission
Returns
bool

Definition at line 65 of file RsaAuthService.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\devLog(), and TYPO3\CMS\Rsaauth\RsaAuthService\getRsaEncryptionDecoder().

Member Data Documentation

◆ $extKey

TYPO3\CMS\Rsaauth\RsaAuthService::$extKey = 'rsaauth'

Definition at line 39 of file RsaAuthService.php.

◆ $prefixId

TYPO3\CMS\Rsaauth\RsaAuthService::$prefixId = 'tx_rsaauth_sv1'

Definition at line 47 of file RsaAuthService.php.

◆ $rsaEncryptionDecoder

TYPO3\CMS\Rsaauth\RsaAuthService::$rsaEncryptionDecoder = null
protected

◆ $scriptRelPath

TYPO3\CMS\Rsaauth\RsaAuthService::$scriptRelPath = 'Classes/RsaAuthService.php'

Definition at line 55 of file RsaAuthService.php.