Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include user role in profile object when authenticating #322

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

knolleary
Copy link
Member

@knolleary knolleary commented Mar 5, 2025

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:

image

@hardillb hardillb merged commit 53fd496 into main Mar 5, 2025
5 checks passed
@hardillb hardillb deleted the user-role-auth branch March 5, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants