Include user role in profile object when authenticating #322
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of FlowFuse/node-red-dashboard-2-user-addon#21
This updates the launcher. There is a near-identical PR in the device agent - #363
This includes the
role
property of the authenticated user when logging into the editor or dashboard.This required a second API call to get the info; which is mapped from the api-level numeric role to the human readable form.
With this in place, the
msg._client.user
object emitted by FF Dashboard nodes will include the role info: