Wekan / General
Hey. I am trying to set up Keycloak and Wekan. I imported realm-export.json and configured docker-compose.yml. Also I created the first user (admin) with the usual way. When I try to login using OIDC, I get the error:
wekan-app | {"line":"405","file":"oauth_server.js","message":"Error in OAuth Server: Failed to get token from OIDC https://myserver.net:7443/auth/realms/tomatek/protocol/openid-connect/token: connect ECONNREFUSED 76.21.167.192:7443","time":{"$date":1604399888056},"level":"warn"}wekan-app | Exception while invoking method 'login' Error: Failed to get token from OIDC https://myserver.net:7443/auth/realms/tomatek/protocol/openid-connect/token: connect ECONNREFUSED 76.21.167.192:7443wekan-app | at getToken (packages/wekan-oidc.js:130:22)wekan-app | at Object.handleOauthRequest (packages/wekan-oidc.js:29:15)wekan-app | at OAuth._requestHandlers.<computed> (packages/oauth2/oauth2_server.js:10:33)wekan-app | at middleware (packages/oauth/oauth_server.js:170:5)wekan-app | at /build/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
docker-compose.yml
:
- DEBUG=true- OAUTH2_ENABLED=true- OAUTH2_LOGIN_STYLE=redirect- OAUTH2_CLIENT_ID=wekan- OAUTH2_SERVER_URL=https://myserver.net:7443/auth- OAUTH2_AUTH_ENDPOINT=/realms/Tomatek/protocol/openid-connect/auth- OAUTH2_USERINFO_ENDPOINT=/realms/Tomatek/protocol/openid-connect/userinfo- OAUTH2_TOKEN_ENDPOINT=/realms/Tomatek/protocol/openid-connect/token- OAUTH2_SECRET=352b98ff-87b9-4795-84e3-290061c05cb1- OAUTH2_ID_MAP=preferred_username- OAUTH2_USERNAME_MAP=preferred_username- OAUTH2_FULLNAME_MAP=given_name- OAUTH2_EMAIL_MAP=email