OAuth2 error: java.lang.IllegalArgumentException: Authorities must be a String
Thjis articles discusses a defect in the internal class in charge of converting a OAuth2 JSON Web Token (JWT) token to a ClientPrincipal object. The current implementation of this class converting a JWT to a Spring security token doesn't support JSON array for the "scope" attribute.