To set up OpenID connect in docker compose we have respective block of environment variables. We should add values to the variables and also add:

ROOT_URL=https://wekan.example.com

Due to known bug in Wekan it don’t this environment variable by default wich makes Wekan to reload the bage or redirect to the Keycloak for login and don’t allow access after the successfull login also with error in logs, that looks like this:

{"line":"406","file":"oauth_server.js","message":"Error in OAuth Server: Failed to get token from OIDC https://sso.example.com/realms/test-realm/protocol/openid-connect/token: failed [400] {\"error\":\"invalid_grant\",\"error_description\":\"Incorrect redirect_uri\"}","time":{"$date":1346636677670},"level":"warn"}

Even if docker-compose file has mentioned environment variable, check it twice, since it could have wrong url spelling or http:// instead of https://

Wekan configuration for Keycloak integration: https://github.com/wekan/wekan/wiki/Keycloak Wekan GitHub issue tracking page about similar error: https://github.com/wekan/wekan/issues/3542#issuecomment-871352810

No comments yet