I am attempting to include Principal Attributes for the client after login
in via CAS 4.2.2
Server cas.log:
2016-06-22 10:56:04,428 DEBUG [org.jasig.services.persondir.support.
MergingPersonAttributeDaoImpl]
- Retrieved attributes='[NamedPersonImpl[name=xyz,attributes={USER_ROLE=[login,
admin, student]}]]' for query='{username=[xyz]}', isFirstQuery=false,
currentlyConsidering=
'org.jasig.services.persondir.support.jdbc.MultiRowJdbcPersonAttributeDao@62aac52b'
, resultAttributes='[NamedPersonImpl[name=xyz,attributes={displayName=[xyz],
uid=[1198], mail=[[email protected]]}]]'
2016-06-22 10:56:04,428 DEBUG [org.jasig.services.persondir.support.
MergingPersonAttributeDaoImpl]
- Aggregated search results '[NamedPersonImpl[name=xyz
,attributes={displayName=[xyz], uid=[1198], mail=[[email protected]],
USER_ROLE=[login, admin, student]}]]' for query='{username=[xyz]}'
2016-06-22 10:56:04,429 DEBUG [org.jasig.cas.authentication.principal.cache.
AbstractPrincipalAttributesRepository]
- Found [4] attributes for principal [xyz] from the attribute repository.
2016-06-22 10:56:04,429 DEBUG [org.jasig.cas.authentication.principal.cache.
AbstractPrincipalAttributesRepository]
- No merging strategy found, so attributes retrieved from the repository
will be used instead.
I have merged attributes from a SingleRowJdbcPersonAttributeDao and from a
MultiRowJdbcPersonAttributeDao, both are working, as the Aggregated results
show.
The debug also shows Found 4 attributes found for principal.
I am confused about the last debug statement "No merging strategy
found....", but I am merging the attributes.
And the client side, only the Principal attribute id is returned, no other
attributes.
How to access the Principal Attributes from client?
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/197787c8-2e0c-4106-a11a-fe04acf4df3c%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.