我们仅支持通过 LDAP 进行一种登录方式。目前,当用户注销时,他们会被发送到 our.domain/login 页面,该页面看起来像这样(这是我在 VirtualBox 中的测试服务器的截图,因此 URL 和 HTTPS 警告):
点击登录会将用户发送到 our.domain/auth/ldap/
是否有办法使此重定向自动进行,以便用户永远不会看到第一个屏幕(在我们的用例中,该屏幕没有任何价值)?
(奖励问题是如何自定义后者屏幕以包含密码重置链接)
编辑:很明显,我不是唯一对此感兴趣的人:Custom login permalink
1 个赞
Alexander
(Alexander Barrios)
2
Discourse 有一个设置可以自动重定向到外部提供商,但它不会影响“/login”页面,因为它是一个“静态”页面。
我认为是 auth immediately
2 个赞
最后我放了:
# 永久重定向到单个页面
rewrite ^/login$ http://mydomain.tld/auth/ldap permanent;
到
/etc/nginx/conf.d/mydomain.tld.d/redirect.conf
我正在 Yunohost 上运行 Discourse,所以它通过 nginx 运行。如果 Discourse 能自动完成这个就好了 
2 个赞
system
(system)
关闭
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.