douluogu8713 2017-10-16 12:51
浏览 34
已采纳

TYPO3 BE刷新登录方法

I have created my own simple plugin, that authenticates backend users with my remote server:

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
]);

But I didn't know that TYPO3 has a "Refresh Login" screen option:

enter image description here

I noticed, that on submit, it calls:

/typo3/index.php?ajaxID=/ajax/rsa/publickey&skipSessionUpdate=1

But what Service/Method does this ajax call?

Does it use the same authentication service I have already defined? If so, what is the specific method it uses?

A link to the correct manual will suffice also.

  • 写回答

1条回答 默认 最新

  • douhu2131 2017-10-16 13:57
    关注

    I can't find the exact position of this script, but found the corresponding JavaScript file. Maybe this helps: https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js

    But I'm pretty sure that it uses all registered login services.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大