saving grantedAuthority using mongoDB

Hi,
My problem is that mongoDB can’t inherently save the grantedAuthority class that is needed in Spring Security for the UserDetails.

That should be a really common problem I still cannot find a solution for it. Has someone experience using Spring Security with MongoDB?