简体   繁体   English

MediaWiki REMOTE_USER使用AuthManager自动登录

[英]MediaWiki REMOTE_USER auto-login with AuthManager

The authentication mechanism has been revamped in version 1.27 of MediaWiki; 身份验证机制已在MediaWiki的1.27版中进行了改进; it now uses AuthManager instead of AuthPlugin. 它现在使用AuthManager而不是AuthPlugin。 Can someone provide any tips on how one could go about re-spinning the Extension:Auth_remoteuser auto-login feature using $_SERVER['REMOTE_USER']? 有人可以提供有关如何使用$ _SERVER ['REMOTE_USER']重新旋转Extension:Auth_remoteuser自动登录功能的提示吗? My understanding is that I would need to implement an Authentication Provider, but I'm not sure where to start. 我的理解是,我需要实现身份验证提供程序,但是我不确定从哪里开始。 Update: A code example would be nice. 更新:一个代码示例会很好。

I see your question has been answered elsewhere, but for the record there is documentation and an update guide available, and as explained there , you probably want to implement ImmutableSessionProviderWithCookie . 我看到您的问题在其他地方已得到解答,但为了记录在案,有文档和可用的更新指南 ,如此处所述 ,您可能想要实现ImmutableSessionProviderWithCookie The phpdoc for that class and its parents has further instructions. 该类及其父类的phpdoc有更多说明。

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

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