tschikarski / shibboleth

TYPO3 CMS shibboleth extension
3 stars 9 forks source link

User added / updated directly in SQL instead of using typo3 method #11

Open ghost opened 7 years ago

ghost commented 7 years ago

Problem is that we can't hook into this event now e.g. to send notifications on new users or do a further processing. To implement this properly this insert needs also a user context. Therefore its necessary to create a technical user (e.g. "_shibboleth") that is doing this action for the log files.

$data['be_users'][] = array( ... structure for user );

$tce = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\DataHandling\DataHandler'); $tce->stripslashes_values = 0; $tce->start($data, array(), $technical_BE_USER); $tce->process_datamap();

Source: https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Typo3CoreEngine/Database/Index.html https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Typo3CoreEngine/UsingDataHandler/Index.html

tschikarski commented 5 years ago

This issue was closed erranously. However, the change would be a significant effort and add complexity to the integration process. This feature request should be considered as an optional feature, while retaining the old (simple to use) variant for compativility.