I have a use case where a user logs in after sign up form completion. At that moment user doesn't have any role. After email confirmation user logs in and, as it has no role, he/she has to choose a profile. After profile selection user is granted the roles regarding the chosen profile.
I wish there where a way not to have to log out and log in again to see user roles updated when accessing userContext.getRoles();