KeyCloak User Federation AND DYNAMIC ROLES
问题 I am using this guide http://www.keycloak.org/docs/3.2/server_development/topics/user-storage.html to configure user federation. This works fine and my users can login. My users are stored in a Mysql Database. Users have different roles - also store in mysql. I am not not sure of how to add roles to the UserModel. I've implemented getUserXXX methods e.g @Override public UserModel getUserByEmail(String email, RealmModel realm) { LOGGER.info("LOADING BY EMAIL"); try (Connection connection = ds