CAS 6.1 RC5 is released:
https://github.com/apereo/cas/releases/tag/v6.1.0-RC5
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are
Because after calling mergeAttributes of DefaultAuthenticationResultBuilder
class, everything in the Principal is returned as List.
2 Eylül 2019 Pazartesi 12:12:51 UTC+3 tarihinde Cemal Önder yazdı:
>
> Hi everyone,
>
> I have a JSON problem while returning custom attributes in my custom
>
And when I look for the CAS for how it handles Principal, it merges
everything as LinkedList. So for that reason whatever I add in the Object
of Map section, it returns as array in the JSON
representation like []. Which means when I add attributes.put("name",
"ExampleName"), it returns as
Hi everyone,
I have a JSON problem while returning custom attributes in my custom
authentication handler:
return createHandlerResult( credential,
this.getPrincipalFactory( ).createPrincipal( credential.getId( ), attributes)
);
which createPrincipal method accepts Map
Principal