来自外部表单的 MediaWiki 身份验证
我已经安装了mediawiki,但我想让用户通过外部身份验证表单进行身份验证。当他们输入正确的用户名和密码时,他们将被重定向到wiki页面,并且不需要再次重新输入登录数据,因此他们可以继续按照他们想要的方式编辑维基。我怎样才能实现这一目标?
I have already installed mediawiki , but I want to make users authenticate from external authentication form.When they enter the right username and password , they are redirected to the wiki page and do not need to retype the Login data again , and hence they can go to edit the wiki the way they want.How can I achieve that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用带有 action=login 的 mediawiki API。 请参阅http://en.wikipedia.org/w/api.php
Use the mediawiki API with action=login . See http://en.wikipedia.org/w/api.php
如果您有提供 Web 身份验证服务的外部身份验证服务,您可以采用某些 Web 身份验证扩展。 这个one 在我的组织中使用。 当然,您必须对其进行自定义。
另一种选择是OpenID使用此扩展登录< /a>,看起来类似于 stackoverflow 登录。
在这两个解决方案中,密码不会在“外部表单”和您的 wiki 之间发送,仅发送一个表示用户通过了登录挑战的令牌。
If you have external authentication service that provides web authenticaion service you can adapt some webauth extension. This one is used in my organization. You will have to customize it of course.
Yet another option is OpenID login with this extension, looks similar to stackoverflow login.
In these two solutions password is not sent between the "external form" and your wiki, only a token signifying that user passed the login challenge.
另请参阅https://www.mediawiki.org/wiki/User:Krinkle/API_PHP_cURL_example
简单代码:
see also https://www.mediawiki.org/wiki/User:Krinkle/API_PHP_cURL_example
simple code: