jhf2442
(Jhf2442)
1
Hi,
I wanted to activate SSO to use discourse as an SSO provider for Mediawiki, but it looks like I’ve activated external SSO for discourse itself
I’ve read oother threads describing workarounds, but they don’t work:
- SiteSettings.enable_sso=false through ruby console -> login form displays “unknown error” upon submission of user/password
- use backdoor /users/admin-login -> blank screen with “[“BAD CSRF”]” after submiting the form
- selecting “resend password” in login form displays a 403 error in the dialog box upon submission
As I’ve logged out as admin (deleted all my cookies), I can’t access /logs to see if there’s some hint to be found there
So … anything I could do the regain access to my site ?
Many thanks
1 Like
Stephen
(Stephen)
2
You can disable SSO from the rails console or use the admin login path. Both are documented here on Meta if you use the search.
jhf2442
(Jhf2442)
3
that’s what I did, but it still doesn’t work !
or is there another besides the ones I’ve listed in my original post ?
jhf2442
(Jhf2442)
4
Correction, because I saw a typo: SiteSetting.enable_sso (no s in Setting !)
jhf2442
(Jhf2442)
5
and finally : SiteSetting.enable_local_logins = true also didn’t help
Stephen
(Stephen)
6
Try https://<yoursiteurl>/u/admin-login/
jhf2442
(Jhf2442)
7
/u seems to be an alias to /users
Stephen
(Stephen)
8
How was this instance installed? What version is it?
jhf2442
(Jhf2442)
9
docker container
2 days ago it was reported to be up to date in the admin panel (as I have no access to it I can’t cehck the version)
jhf2442
(Jhf2442)
10
Problem worked around by restoring from a previous backup. Still no idea what went wrong but at least I have gained back access to my site
3 Likes
system
(system)
Closed
11
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.