一次登陆

概述

从0.6.0RC3版本起,Seagull允许你通过一次登陆而使用多个网站,现在已经在FUDforum集成中使用。

onLogin事件现在设置成支持侦听器,所以你可以在其它项目中创建登陆脚本,并将其注册到onLogin事件,这样Seagull在验证用户时会同时验证用户你其它站点的访问权限。

LoginMgr的onLogin事件是由该文件中的User_DoLogin类处理。

user模块的配置文件如下:

[LoginMgr]
requiresAuth    = false
logonAdminGoto  = default^module
logonUserGoto   = user^account
recordLogin     = true
observers       = ;DoFudLogin

DoFudLogin侦听器默认是禁用的,删除分号就可以启用。要注册更多的侦听器,只需将侦听器类名加在后面,并以逗号隔开,这些类必须保存在seagull/modules/user/classes/observers目录中。

更多参考资料

上面描述的最多也不过是一次登陆的伪代码,更多资料请看http://openid.net/

 
integration/singlesignon.txt · 最后更改: 2010/05/30 00:21 (外部编辑)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2