Restrict user creation via OAuth2


I propose to add an option to refuse the registration of a user if he doesn’t have a specific role. The role will be passed as an attribute in the JSON, like the other attributes.
This would allow me to make the creation automatic and not to ask an administrator to accept or not a registration.
What do you think?