Skip to content

[Bug]: auth error when using KeyCloak #1586

Open
@u0078867

Description

@u0078867

Is there an existing issue for this?

  • 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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java BackendPull requests that update Java code

    Type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions