在cakephp和moodle之间共享用户登录/会话 [英] Share user login/session between cakephp and moodle

查看:136
本文介绍了在cakephp和moodle之间共享用户登录/会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经运行的网站,使用CakePHP,它有自己的登录系统使用Auth组件。

I have a website already running made with CakePHP, which has its own login system using the Auth component.

现在我要创建另一个网站使用moodle ,托管在同一个服务器上。是否有任何方法可以在这两个网站之间共享用户会话?

Now I'm going to create another website using moodle, hosted in the same server. Is there any way to share the user session between those 2 websites?

例如,如果用户登录到moodle网站并点击指向其他网页的链接

For example, if a user logs into the moodle website and clicks a link to a page of the other website, he is not asked to log in again, since the system recognises that he is already logged in.

我想要做的一件事是告诉moodle(),这是因为系统已经登录。以某种方式)使用CakePHP网站已在使用的数据库中的用户表。然后告诉CakePHP网站接受在其他网站创建的会话。这样的东西吗?

I guess that one thing to do would be to tell moodle (somehow) to use same table of users in the database that the CakePHP website is already using. And then tell the CakePHP website to accept the sessions created in that other website. Something like this right?

但我不知道如何做这些事情,如果他们甚至可能,任何建议如何处理这将是非常有益的。 / p>

But I don't know how to do those things or if they even possible, any advice on how to approach this would be very helpful.

推荐答案

单点登录(SSO)目前在Moodle中不是一件小事。

Single sign-on (SSO) is not currently a trivial thing to do in Moodle.

您可能考虑的其他一些方法是:

Some other approaches you may consider are:


  • 在Moodle中使用外部身份验证并将其配置为使用Cake的数据库。

  • Use external authentication in Moodle and configure it to use Cake's database. Does not provide SSO but tells Moodle to use Cake's user accounts.

配置Moodle和Cake以使用LDAP,POP3或CAS等通用认证系统。根据您的选择,您可能会实现SSO。

Configure both Moodle and Cake to use a common authentication system like LDAP, POP3 or CAS. Depending of your choice it is possible that you may achieve SSO.

有关Moodle身份验证插件的详细信息page:

More information about Moodle authentication plug-ins in this page:

http://docs.moodle。 org / dev / Authentication_plugins

这篇关于在cakephp和moodle之间共享用户登录/会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆