Embedding with different roles #28697
Replies: 4 comments 2 replies
-
Would also like to see this. Should be a straightforward implementation, and makes sense that we might want guest users with different permissions. Happy to contribute a PR. |
Beta Was this translation helpful? Give feedback.
-
Can you help me when i am trying to get access token using login api call but it actually works for admin role and i will get access token response but for other roles, i am actually getting 401 unauthorised error. I need a solution for this problem |
Beta Was this translation helpful? Give feedback.
-
I just asked the same question. Would love to see this. |
Beta Was this translation helpful? Give feedback.
-
I have the same need, this functionality would be extremely useful to implement a powerful embedding |
Beta Was this translation helpful? Give feedback.
-
It would be great to have the ability to embed dashboards using different Roles for the guest token.
During the embedment we generate a guest token, which takes the Role from the GUEST_ROLE_NAME config.
But sometimes it would be great to have the ability to clearly indicate which role we would like to use for the embedment.
The main reasoning behind it is that depending on the dashboard that is embedded we would like to give the ability for users to download (or to forbid the download) excel and csv functionality (due to local Personal Information processing laws excel download from inside the system is a security breach, which we legally are obliged to eliminate).
The best way to do it, in my opinion, is to expand the GuestTokenUser class with a new attribute "Role" and check in get_guest_user_from_token if the role attribute is present and find the according role (if the attribute is missing - use the configuration one).
Beta Was this translation helpful? Give feedback.
All reactions