I implemented single sign-on using Keycloak.
After logging in from my website’s homepage for the first time and clicking the Kanboard button to redirect to Kanboard, the login was successful.
Then, while keeping the login session active, when I clicked the Kanboard button on the website homepage again to redirect, the following error occurred.
When I refreshed the page again, I was able to successfully access Kanboard, but the page displayed an “external authentication failed” error message.
I checked the debug.log and found that my user information might not have been updated correctly, and the code is invalid.
[2025-04-29 15:31:45] [debug] SQL: UPDATE `users` SET WHERE `id` = ?
[2025-04-29 16:12:49] [debug] HttpClient: body={"error":"invalid_grant","error_description":"Code not valid"}
[2025-04-29 16:12:49] [debug] HttpClient: executionTime=0.14527416229248
[2025-04-29 16:12:49] [debug] Kanboard\Plugin\OAuth2\Auth\GenericOAuth2Provider::getProfile: Got access token: No
Does anybody know the reason and how to solve it? Thanks.