‪TYPO3CMS  9.5
TYPO3\CMS\Rsaauth\RsaAuthService Class Reference
Inheritance diagram for TYPO3\CMS\Rsaauth\RsaAuthService:
TYPO3\CMS\Core\Authentication\AuthenticationService TYPO3\CMS\Core\Authentication\AbstractAuthenticationService TYPO3\CMS\Core\Service\AbstractService

Public Member Functions

bool processLoginData (array &$loginData, $passwordTransmissionStrategy)
 
bool init ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Authentication\AuthenticationService
mixed getUser ()
 
int authUser (array $user)
 
mixed getGroups ($user, $knownGroups)
 
 getSubGroups ($grList, $idList, &$groups)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Authentication\AbstractAuthenticationService
 initAuth ($mode, $loginData, $authInfo, $pObj)
 
bool compareUident (array $user, array $loginData, $passwordCompareStrategy='')
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename='', $recuid='', $recpid='')
 
mixed fetchUserRecord ($username, $extraWhere='', $dbUserSetup='')
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Service\AbstractService
array getServiceInfo ()
 
string getServiceKey ()
 
string getServiceTitle ()
 
mixed getServiceOption ($optionName, $defaultValue='', $includeDefaultConfig=true)
 
 devLog ($msg, $severity=0, $dataVar=false)
 
 errorPush ($errNum=self::ERROR_GENERAL, $errMsg='Unspecified error occurred')
 
 errorPull ()
 
int bool getLastError ()
 
string getLastErrorMsg ()
 
array getErrorMsgArray ()
 
array getLastErrorArray ()
 
 resetErrors ()
 
bool checkExec ($progList)
 
 deactivateService ()
 
string bool checkInputFile ($absFile)
 
string bool readFile ($absFile, $length=0)
 
string bool writeFile ($content, $absFile='')
 
string bool tempFile ($filePrefix)
 
 registerTempFile ($absFile)
 
 unlinkTempFiles ()
 
 setInput ($content, $type='')
 
 setInputFile ($absFile, $type='')
 
mixed getInput ()
 
string getInputFile ($createFile='')
 
 setOutputFile ($absFile)
 
mixed getOutput ()
 
mixed getOutputFile ($absFile='')
 
 reset ()
 
 __destruct ()
 

Public Attributes

string $extKey = 'rsaauth'
 
string $prefixId = 'tx_rsaauth_sv1'
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Authentication\AbstractAuthenticationService
AbstractUserAuthentication $pObj
 
string $mode
 
array $login = array( )
 
array $authInfo = array( )
 
array $db_user = array( )
 
array $db_groups = array( )
 
bool $writeAttemptLog = false
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Service\AbstractService
const ERROR_GENERAL = -1
 
const ERROR_SERVICE_NOT_AVAILABLE = -2
 
const ERROR_WRONG_SUBTYPE = -3
 
const ERROR_NO_INPUT = -4
 
const ERROR_FILE_NOT_FOUND = -20
 
const ERROR_FILE_NOT_READABLE = -21
 
const ERROR_FILE_NOT_WRITEABLE = -22
 
const ERROR_PROGRAM_NOT_FOUND = -40
 
const ERROR_PROGRAM_FAILED = -41
 
array $info = array( )
 
array $error = array( )
 
string $out = ''
 
string $inputFile = ''
 
string $inputContent = ''
 
string $inputType = ''
 
string $outputFile = ''
 
array $tempFiles = array( )
 

Protected Member Functions

RsaEncryptionDecoder getRsaEncryptionDecoder ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Authentication\AuthenticationService
 updatePasswordHashInDatabase (string $table, int $uid, string $newPassword)
 
 writeLogMessage (string $message,... $params)
 

Protected Attributes

RsaEncryptionDecoder $rsaEncryptionDecoder
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Service\AbstractService
array $shutdownRegistry = array( )
 
string $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 ('core'). This ensures that it always works, even if other TYPO3 internals change.

Definition at line 27 of file RsaAuthService.php.

Member Function Documentation

◆ getRsaEncryptionDecoder()

RsaEncryptionDecoder TYPO3\CMS\Rsaauth\RsaAuthService::getRsaEncryptionDecoder ( )
protected

◆ init()

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

◆ processLoginData()

bool 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$loginData‪Credentials that are submitted and potentially modified by other services
string$passwordTransmissionStrategy‪Keyword of how the password has been hashed or encrypted before submission
Returns
‪bool

Reimplemented from TYPO3\CMS\Core\Authentication\AuthenticationService.

Definition at line 55 of file RsaAuthService.php.

References TYPO3\CMS\Rsaauth\RsaEncryptionDecoder\decrypt(), and TYPO3\CMS\Rsaauth\RsaAuthService\getRsaEncryptionDecoder().

Member Data Documentation

◆ $extKey

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

Standard extension key for the service The extension key.

Definition at line 38 of file RsaAuthService.php.

◆ $prefixId

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

Standard prefix id for the service Same as class name

Definition at line 45 of file RsaAuthService.php.

◆ $rsaEncryptionDecoder

RsaEncryptionDecoder TYPO3\CMS\Rsaauth\RsaAuthService::$rsaEncryptionDecoder
protected