If we are to restrict the roles that are put into the JWT token based on the application. For example
If a user has roles [A,B,C,D]
For app1 only allow [A,B] while for app2 allow [A,C,D].
If we create a client per application, then we could restrict the scope for that client by selecting the roles that are only relevant to that application,
Is this the best approach? Any other alternatives?
Are there any complications with this approach?