astarte-platform / astarte-dashboard

Astarte dashboard
http://astarte-platform.org
Apache License 2.0
17 stars 15 forks source link

Compute permissions from the JWT and disable unavailable UI sections #416

Closed davidebriani closed 3 months ago

davidebriani commented 5 months ago

Since the JWT used for authentication directly contains the list of authorization claims, it can be evaluated how to hide or disable relevant parts of the UI when the permission to use them is missing.

The aim is to improve the user experience without displaying buttons and UI affordances that are, in fact, not usable because the user is not authorized.