rjwats / esp8266-react

A framework for ESP8266 & ESP32 microcontrollers with a React UI
GNU Lesser General Public License v3.0
478 stars 147 forks source link

[Question] Add permissions to an user #293

Open FernandoGarcia opened 2 years ago

FernandoGarcia commented 2 years ago

Hi!

I would like to know if is possible to give some permissions to a guest user without rewrite the interface.

I want to give permission to a guest to connect to a WiFi Network and upload a new firmware and block AP and security tabs.

Thanks in advance.

Best regards

rjwats commented 2 years ago

Not currently.

The UI is built around the two roles ADMIN and GUEST. The interface has a built-in understanding of which roles have access to which features.

Granular permissions is a worthwhile feature request. I think there's an issue about JWT expiry and generating API tokens which seems related.

On Thu, 7 Apr 2022, 23:48 Fernando Garcia, @.***> wrote:

Hi!

I would like to know if is possible to give some permissions to a guest user without rewrite the interface.

I want to give permission to a guest to connect to a WiFi Network and upload a new firmware and block AP and security tabs.

Thanks in advance.

Best regards

— Reply to this email directly, view it on GitHub https://github.com/rjwats/esp8266-react/issues/293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKE4VBYXRX3UBEUE5SUWTLVD5Q3FANCNFSM5S2Z5R2A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

FernandoGarcia commented 2 years ago

Ok, thanks for your answer.