My credentials don’t work, then I have to use captcha after many fails.
Impossible to login on Kanboard.
Now, I’ve restored a backup with version 1.2.48~ynh1, it’s ok.
Is there a way to update the current version ? I can try to update to have logs if it can help
EDIT : If it can help… I see the current config.php with the rights kanboard:kanboard , and on my previous backup it was kanboard:www-data
I’ve just set up a new fresh install of Kanboard 1.2.57~ynh1 on another subdomain, and a white page is shown (code inside when viewing the source) too.
So I think it’s not (only) an upgrade problem ?
Thx for your help, I’ve already tested your given solution, but I’m thinking it’s not really my case, when I see the documentation inside Yunohost, I see for example
define('REVERSE_PROXY_AUTH', false);
and as I’m using the user database from Yunohost, I will not change this setting, if I don’t want to use users from the Kanboard app database itself.
As described on the Github issue tracker, the last package version supporting SSO login (i.e. Reverse proxy authentication) is 1.2.48~ynh1.
For a temporary fix, 4 settings are at stake: LDAP_AUTH, REVERSE_PROXY_AUTH, HIDE_LOGIN_FORM, DISABLE_LOGOUT.
You probably want to set them all to true (if using SSO login) or all to false (if using the app internal user creation feature).
But given the SSO login feature is currently broken in this package, if you want to keep using YNH credentials to log then you will want to set them temporarily (until a fix comes) all to false except for LDAP_AUTH that you will set to true.
A new version of the package is coming with a fix and a config panel to switch easily from one authentication scenario to the other.
I get from the link you point to that installing Customizer >=1.14.2 fixes this issue.
The issue I notice happens with a fresh Kanboard instance (v1.2.57~ynh3) without any plugin installed and with authentication mode set to “App” in the config panel. I guess we’d rather have the package and/or upstream code fixed without the need for a plugin if possible (haven’t tested with Customizer though).
I thought maybe YNH reverse proxy could have been doing something to the URL, but adding var_dump($_SERVER['REQUEST_URI']); in /var/www/kanboard/index.php shows the csrf_token, so I guess it is forwarded to the app as expected.
On a fresh instance with App auth, if the URL carries csrf_token but logout still fails, I’d check whether that token matches the one stored in the session at logout time. Commenting out checkCSRFParam bypasses exactly that validation. The Customizer fix may cover a plugin-specific token reset, but it would not explain your no-plugin case. Clearing cookies/session after changing auth mode is a quick way to rule out a stale token before filing upstream.
I think the Customizer fix was just catching up with the recent upstream changes back then. And is unrelated to the current case (although it relates to the same functions).
Deleting cookies (or testing in a private browsing windows) doesn’t help. Do you also refer to deleting the session in the databse or I don’t know where ?
So for the notice, it is actually in the reverse proxy config not passing the URL parameters. Package version 1.2.57~ynh4 will be released soon to fix this.