简体   繁体   English

扩展Joomla身份验证插件

[英]Extending Joomla Authentication Plugin

I want to create a Joomla authentication plugin which will execute some business logic before letting the user to authenticate, but I want to let the default authentication plugin to do that for me. 我想创建一个Joomla身份验证插件,该插件将在允许用户进行身份验证之前执行一些业务逻辑,但是我想让默认身份验证插件为我完成此操作。

What I want to do is: 我想做的是:

function onAuthenticate($credentials, $options, &$response) {

    // My business logic

    // Execute the onAuthenticate event of the default Joomla authentication plugin
    // which can be Joomla, OpenId etc.

}

So in my onAuthenticate function, I want to call the default authentication plugin's onAuthenticate function. 因此,在我的onAuthenticate函数中,我想调用默认身份验证插件的onAuthenticate函数。

Any ideas? 有任何想法吗? Sorry guys, I'm new to Joomla extension development. 抱歉,我是Joomla扩展开发的新手。 Thanks for any help. 谢谢你的帮助。

我通过仅将插件和joomla身份验证插件同时激活来解决了问题,并在插件的“订单”列中设置了0,以便在Joomla的auth插件之前将onAuthenticate通知给它。

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

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