我创建了自己的简单插件,用我的远程服务器验证后端用户:
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService($_EXTKEY, 'auth', \My\Hooks\MyAuthService::class, [
'title' => 'MY-Authentication',
'description' => 'My Authentication service (FE and BE).',
'subtype' => 'getUserBE,authUserBE',
'available' => 1,
'priority' => 60,
'quality' => 60,
'os' => '',
'exec' => '',
'className' => \My\Hooks\MyAuthService::class
]);
但我不知道TYPO3有一个“刷新登录”屏幕选项:
我注意到,在提交时,它会调用:
/typo3/index.php?ajaxID=/ajax/rsa/publickey&skipSessionUpdate=1
但是这个ajax调用了什么服务/方法?
它是否使用我已经定义的相同身份验证服务?如果是这样,它使用的具体方法是什么?
指向正确手册的链接也足够了。
答案 0 :(得分:1)
我无法找到此脚本的确切位置,但找到了相应的JavaScript文件。也许这会有所帮助:https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js
但我很确定它使用所有已注册的登录服务。