简体   繁体   English

TYPO3 BE刷新登录方法

[英]TYPO3 BE Refresh Login method

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: 但是我不知道TYPO3具有“刷新登录”屏幕选项:

在此处输入图片说明

I noticed, that on submit, it calls: 我注意到,提交后它会调用:

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

But what Service/Method does this ajax call? 但是这个ajax调用什么服务/方法?

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. 指向正确手册的链接也将足够。

I can't find the exact position of this script, but found the corresponding JavaScript file. 我找不到此脚本的确切位置,但找到了相应的JavaScript文件。 Maybe this helps: https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js 也许这会有所帮助: 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. 但是我很确定它会使用所有注册的登录服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM