flutter_thingsboard_app icon indicating copy to clipboard operation
flutter_thingsboard_app copied to clipboard

Tenant users cannot log in to ThingsBoard Live App (works fine for SysAdmin and Customer)

Open matiasAS opened this issue 2 months ago • 3 comments

ThingsBoard Platform Version

4.2.0 CE

Affected platforms

Android

ThingsBoard Platform Type

Self-hosted ThingsBoard

App Release Version

1.7.0

Steps to reproduce

Deploy ThingsBoard 4.2.0 CE using Docker on Ubuntu 22.04.

Create a tenant and a tenant administrator user.

Try to log in to the ThingsBoard Live App with that tenant account using QR code.

Observe that nothing happens after login (no session created).

Try again using a SysAdmin or Customer user — login succeeds.

Actual results

When trying to log in to ThingsBoard Live App (Android/iOS or web version) using a Tenant user account using QR code, the login fails — sometimes showing "Session expired" or "Authentication failed", and other times just returning to the login screen with no visible error.

However:

The same instance allows SysAdmin and Customer users to log in successfully. The issue occurs consistently with Tenant users only. Both Cloudflare Tunnel and NGINX Proxy Manager have been tested as reverse proxies — the same problem occurs in both setups. No special configuration or customization has been made to authentication. ThingsBoard web UI login (via browser) works correctly for all users, including Tenant. It seems the Live App either doesn’t handle the Tenant authentication token properly or the session is not recognized by the backend when routed through Cloudflare/NGINX.

I tried demo.thingsboard.io and I can log in without any problems.

Problematic Files (Optional)

No response

App Logs

App Logs

<!-- Paste your app logs here -->

Flutter Doctor output

Doctor output

<!-- Paste your flutter doctor -v output here -->

matiasAS avatar Oct 13 '25 14:10 matiasAS