CAS Custom Authentication Handler Principal JSON Problem
问题 I have a JSON problem while returning custom attributes in my custom authentication handler's overriden authenticateUsernamePasswordInternal function: return createHandlerResult( credential, this.getPrincipalFactory( ).createPrincipal( credential.getId( ), attributes) ); which createPrincipal method accepts Map<String, Object> Principal createPrincipal(String id, Map<String, Object> attributes); When I put Map<String, List> in attributes, CAS returns toString representation of the List