apiomat

CAS Custom Authentication Handler Principal JSON Problem

拟墨画扇 提交于 2019-12-10 16:24:05
问题 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