lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

[Bug]: auth error when using KeyCloak

Open u0078867 opened this issue 8 months ago • 0 comments
trafficstars

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

I followed the guide on how to add the auth service with KeyCloak. I am able to be redirected to the KeyCloak login page, but just after I log-in with the test user I created on KeyCloak, I get this Lowcoder API error (details below from Chrome network panel).

POST http://localhost:3000/api/auth/tp/login

with these query parameters:

  • state: ...
  • code: ...
  • source: KEYCLOAK
  • authId: ...
  • redirectUrl: http://localhost:3000/user/auth/oauth/redirect
  • orgId: ...

500 Internal Server Error

Response payload:

{
    "code": 5601,
    "message": "Failed to get OIDC information, error message: 500 Internal Server Error from POST http://localhost:8080/realms/myrealm/protocol/openid-connect/token.",
    "success": false
}

Logging lowcoder container did not show any error message.

Expected Behavior

A successful login.

Steps to reproduce

Lowcoder running locally: lowcoderorg/lowcoder-ce@sha256:8f10f3b2de59b22ee670ebe7a00eb35906923889fbfd227abc081e4ced730ace KeyCloak running locally: quay.io/keycloak/keycloak:26.1.4

Environment

No response

Additional Information

No response

u0078867 avatar Mar 20 '25 08:03 u0078867