Tomas_Hnyk
(Tomas Hnyk)
November 8, 2022, 1:48pm
1
We support only one login method via LDAP. Currently, when user logs out, he is sent to page our.domain/login which looks like this (screenshot from my test server in virtualbox, hence the url and https warning):
Clicking on log in sends the user to our.domain/auth/ldap/
Is there a way to make this redirect automatic so user would never see the first screen (which in our use case does not bring any value)?
(a bonus question would be how to customize the latter screen to include a link for password reset)
Edit: clearly I am not the only one interested: Custom login permalink
1 Like
Alexander
(Alexander Barrios)
November 8, 2022, 5:39pm
2
Discourse has a setting to automatically redirect to external provider, but it doesn’t affect the ‘/login’ page since it’s a “static” page.
I think is auth immediately
2 Likes
Tomas_Hnyk
(Tomas Hnyk)
November 8, 2022, 6:20pm
3
In the end I put this:
# Permanent redirect to an individual page
rewrite ^/login$ http://mydomain.tld/auth/ldap permanent;
to
/etc/nginx/conf.d/mydomain.tld.d/redirect.conf
I am running Discourse on Yunohost, so it is run through nginx. Would be nice if Discourse did this automatically:-).
2 Likes
system
(system)
Closed
December 8, 2022, 6:21pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.