Hi Ray,
That error means that the class,
> PrincipalAttributeRegisteredServiceUsernameProvider, does not have a setter
> for the property, usernameAttribute.
> You can set the 'switch' in the service definition. See further up the
> same page at
> https://apereo.github.io/cas/4.1.x/integration/Attribute-Release.html#principalattributeregisteredserviceusernameprovider
> .
>
Thanks a lot for your answer, it helped me fix the service definition.
Studying the source code of the
PrincipalAttributeRegisteredServiceUsernameProvider class shows that there
is no setter indeed. The usernameAttribute attribute can only be set
through the constructor.
So I changed the declaration that way :
<property name="usernameAttributeProvider">
<bean
class="org.jasig.cas.services.PrincipalAttributeRegisteredServiceUsernameProvider"
c:usernameAttribute="uid" />
</property>
and managed to build the application again :)
Best regards,
Ganael.
--
- 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/59dddd06-2736-4703-a613-a9ee1667bced%40apereo.org.