Hi,
I am producing a custom attribute (claim) to go into the OAuth ID token, my
implementation of the
AbstractUsernamePasswordAuthenticationHandler.authenticate() method
Integer accountId = 1; // queried from DB by username
Map<String, List<Object>> attributes = new HashMap<>();
...
attributes.put("account_id", Collections.singletonList(accountId));
...
return createHandlerResult(credential, this.principalFactory.
*createPrincipal*(realUserName, *attributes*), Collections.emptyList());
The resultant ID token contains then wrong "*account_id*" : "*true*"
rather than the expected "*account_id*" : *1 *
This works fine however for *accountId = 2.*
Is this a known bug?
thanks, /f
--
- 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 subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/4955f100-e67a-4901-b6c8-3f2933ee0614n%40apereo.org.