Hello, I have this scenario:
I have multiple raspberry PI clients(nodes) that will consume my backend services. those nodes will be M2M users, and they all need to have the same permission. another point is that I can add new Nodes to my network at anytime. so I need something like a role to keep the same permissions for all those M2M users(old and new nodes), but the M2M doesn’t support roles, so I need to add them manually. If a new endpoint with a new permission is created I need to go and add that permission to all the existing m2m. is there any easy way to achieve this?
If not I was thinking about create a M2M role and assign permissions to that role. them use the Auth0 API to keep in sync all those m2m user with that set of Permissions. but that will include develop a cron to check if the set of permissions have changed and them update each M2M with the new set of roles and also check if the a new M2M is created and add those permissions, etc. etc…