No, I don’t think that’s the problem because I also tried it on my mobile phone’s built-in web browser and I still had the problem and I don’t have any addons that is doing this.
Hmokay … Well I guess we gonna have to look into ls -thor /var/log/nginx/ after triggering the issue, then remember the 1 or 2 most recently modified files at the bottom, then tail -n 50 /var/log/nginx/<thatfilename> …
Or possibly add 'logging':'debug' into /etc/ssowat/conf.json.persistent (assuming you’re comfortable with editing json files), maybe systemctl relod nginx and check if there anything showing up in /etc/nginx/ssowat.log
Honestly, I don’t really know how to work with .json files , but I entered the commands in the command prompt but I don’t really know what to do with this.
Uh yeah well, if you can share what returns the tail commands they might contain some clue of what’s happening … Possibly using https://paste.yunohost.org
Variable user is not defined … And apparently I’m the culprit xD The whole part starting at “Cross-domain” sounds completely nonsense and shouldn’t be there …
Yet I don’t really understand why we didnt spot this earlier … Or why it only happens to you …
Could it be that you changed some stuff manually in ssowat’s conf ? Do you have more info about when exactly this started happening ?
Hmokay … So if you have a bit more of patience i’d like to see really if removing the faulty part does solve the issue entirely …
Can you try to open the file with ‘sudo nano /usr/share/ssowat/access.lua’
then go down to line 77 to find something like :
-- Force portal scheme
if ngx.var.scheme ~= conf["portal_scheme"] then
logger.debug("Redirecting to "..conf.portal_url.."Cross-domain authentication: "..user.." connected on "..ngx.var.host)
return hlp.redirect(conf.portal_url)
end
and change the logger.debug line such that it’s only :
logger.debug("Redirecting to "..conf.portal_url)
Reload nginx with systemctl reload nginx and try to re-access your yunohost sso ? :s
It seems I’m facing exactly the same issue.
What is the best way to fix it ?
Change myself the file /usr/share/ssowat/access.lua or can we expect a more official fix soon ?