lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

[Bug]: currentuser ANONYMOUS for logged in user.

Open placidic opened this issue 2 months ago • 3 comments
trafficstars

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

When using an oAuth IDP using the Generic provider option, The authenticated users IDP properties are available for viewing and access within the currentuser > extras property.

Upon upgrading to the latest version 2.7.4, It appears that there is a 500 error on the underlying call to retrieve the /currentuser information from the API, resulting in the currentuser object being populated as an ANONYMOUS user.

This is a major bug for any applications that utilize the currentuser information directly within their app.

Expected Behavior

The /currentuser call to return successfully with the extended IDP information for the logged in user.

Steps to reproduce

  1. Start version 2.6.5 lowcoder
  2. Set up IDP Generic oAuth
  3. Log in and verify currentUser Response
  4. Upgrade to tag 2.7.4
  5. Log in and see that currentuser call fails and ANONYMOUS is returned

Environment

Lowcoder 2.7.4 multi

Additional Information

Tested on the latest 'dev' image as well to same outcome. Did not test on versions 2.7.0 - 2.7.3

placidic avatar Sep 13 '25 23:09 placidic