REST Attributs: RestfulPersonAttributeDao method getPeople not implemented.

17 views
Skip to first unread message

Sébastien Ragons

unread,
Jan 25, 2018, 11:50:25 AM1/25/18
to CAS Community
Hello,

I try to retrieve attributes from rest web service: documentation CAS on that topic.

I have setup a minimal configuration with static user:
# Accept Users Authentication: authentification de test
cas.authn.accept.users=sebastien::admin2


##### Service Registry
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.config.location=classpath:/services


# authentication-attributes
################################################
cas.authn.attributeRepository.expireInMinutes=30
cas.authn.attributeRepository.maximumCacheSize=10000
cas.authn.attributeRepository.merger=REPLACE

# Retrieve attributes from a REST endpoint:
cas.authn.attributeRepository.rest[0].method=GET
cas.authn.attributeRepository.rest[0].order=0
cas.authn.attributeRepository.rest[0].caseInsensitive=false
cas.authn.attributeRepository.rest[0].basicAuthUsername=
cas.authn.attributeRepository.rest[0].basicAuthPassword=
cas.authn.attributeRepository.rest[0].url=https://localhost:8000/roles/{user}


When i test the solution i face this exception:
[org.apereo.services.persondir.support.MergingPersonAttributeDaoImpl] - <Recovering From Exception thrown by 
'org.apereo.services.persondir.support.RestfulPersonAttributeDao@15c8c97'>
java.lang.UnsupportedOperationException: This method is not implemented.

           

@Override

public Set<IPersonAttributes> getPeople(final Map<String, Object> query) {

     return getPeopleWithMultivaluedAttributes(stuffAttributesIntoListValues(query));

}


@Override

public Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(final Map<String, List<Object>> query) {

     throw new UnsupportedOperationException("This method is not implemented.");

}

 


Does it mean that i have to implement the code myself ?

Thank you for your help
Sebastien
Reply all
Reply to author
Forward
0 new messages