Hi Ted,
did you use this class for that service?
"usernameAttributeProvider" : {
"@class" :
"org.jasig.cas.services.PrincipalAttributeRegisteredServiceUsernameProvider",
"usernameAttribute" : "cn"
Which is recommended here
https://apereo.github.io/cas/4.1.x/integration/Attribute-Release.html
Regards
2017-12-20 11:09 GMT-03:00 Ted Fisher <[email protected]>:
>
>
> We are running CAS 4.1.5 and have a problem with attributes included in
> the response for one particular service. All other services use our uid as
> the "usernameAttribute", except this one which needs to use a different
> attribute for that (due to requirement in the application). So, I’m
> including uid in the attributes to release for this service:
>
> "allowedAttributes" : [ "java.util.ArrayList", [ "EmplID", "uid",
> "email", "FirstName", "LastName", "username", "affiliation", "cn" ] ],
>
>
>
> But, while all the other attributes are in the response, the uid is not.
> I see in the log that it did find uid along with the others:
>
> 2017-12-20 08:59:25,750 DEBUG [http-bio-8080-exec-14]
> [org.jasig.services.person
>
> dir.support.MergingPersonAttributeDaoImpl] - Aggregated search results
> '[NamedPe
>
> rsonImpl[name=tffishe,attributes={uid=[tffishe], email=[[email protected]],
> affil
>
> iation=[STFEMP, UGRSTU], FirstName=[Theodore], LastName=[Fisher],
> cn=[Theodore F
>
> Fisher], EmplID=[XXXXXXXXXX]}]]' for query='{username=[tffishe]}'
>
>
>
> Since it’s clearly in the attribute map and set for release I would expect
> it in the response.
>
>
>
> Any ideas why it’s not there and how to troubleshoot?
>
>
>
> Thanks.
>
>
>
> Ted Fisher
>
> Bowling Green State University
>
> --
> - 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/CY4PR05MB2933B402BE73FFBC7519E
> 8F2C00C0%40CY4PR05MB2933.namprd05.prod.outlook.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CY4PR05MB2933B402BE73FFBC7519E8F2C00C0%40CY4PR05MB2933.namprd05.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>
--
- 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/CAMY5midzybd0gPTLEUaO9juCgOHoLhw7emez5iNPaVuQ6LZ0XA%40mail.gmail.com.