[TYPO3-dev] retrieving key in rsaauth (TYPO3 4.7)
Michael
typo3ml at schams.net
Wed Mar 6 02:31:54 CET 2013
Hi,
I struggle to get the key from the sysext:rsaauth in TYPO3 CMS 4.7.
The code below works in 4.5 but variable $key is empty when do the same
in 4.7.
Our method checkExpired() is triggered by the following hook:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postLogin'][]
=
'EXT:passwordexpiry/class.tx_passwordexpiry_checkexpiry.php:tx_passwordexpiry_checkexpiry->checkExpired';
The method looks as follows (simplified):
function checkExpired($params) {
$loginData = $params['loginData'];
require_once(t3lib_extMgm::extPath('rsaauth').'sv1/backends/class.tx_rsaauth_backendfactory.php');
require_once(t3lib_extMgm::extPath('rsaauth').'sv1/storage/class.tx_rsaauth_storagefactory.php');
$backend = tx_rsaauth_backendfactory::getBackend();
$storage = tx_rsaauth_storagefactory::getStorage();
$key = $storage->get(); // $key this is empty in 4.7
// this works in 4.5 but can not work in 4.7 (no valid key):
$decrypted = $backend->decrypt($key, substr($loginData['uident'],
4));
}
Anyone has a clue what needs to be changed or added?
Cheers
Michael
More information about the TYPO3-dev
mailing list