We want to use JSON Web Tokens for security but assigning a Role to a client does not seem to be documented anywhere.
We want to have a default Role that allows nothing (deny all), and then have 2 Roles:
- admin: basically the same as Allow All
- customer: limited to subscribing to a certain topic
How do we assign the correct Role when creating the JWT for the client to use to connect? We have tried building the JWT with a “role” field, as well as using the “scope” and “sub” fields. None of those seem to work correctly.