Stefan,

how CAS handles InMemoryDaoImpl? The properties of the UserDetails
object returned by the dao are serialized in the reponse xml?

Right now I have a custom UserDetailsService in the client side, but I
would like CAS to send custom user information (real name, employee
id, roles, etc) to the client, saving it from accessing the table of
users. Is it feasible (and recommended)?

(I already have a CAS 3.3.1 server running, with a Spring Security
2.0.4 client.)


On Wed, Nov 12, 2008 at 12:41 PM, Stefan Dürr <[EMAIL PROTECTED]> wrote:
> Hi Robert, it was me who asked for a functionality for storing speacial
> attributes from the service-response into a user-object ;)
> Like Scott wrote, you have to use an userDetailsService, like the class
> "InMemoryDaoImpl". But this one can not store special attributes. My
> solution was to write my own "MyInMemoryDaoImpl", based on the source of
> the original "InMemoryDaoImpl" but with attributes to store my special
> attributes. My CAS-Client is also modified and can acces
> MyInMemoryDaoImpl to store the attributes, which he parsed out of the
> cas-service-response
>
> regards, stefan
>
>
>
> Robert Lewis schrieb:
>> Hi,
>>
>> An update, now I see that bean casAuthoritiesPopulator is not needed,
>> but I can't figure out what the bean casAuthenticationProvider needs
>> to get initialized. What I have configured is below. I get a deployment
>> error message of the following. "Invocation of init method failed;
>> nested exception is java.lang.IllegalArgumentException: A
>> userDetailsService must be set"
>>
>> Any help would be appreciated.
>>
>>
>>
>> <bean id="casAuthenticationManager"
>> class="org.springframework.security.providers.ProviderManager">
>>               <property name="providers">
>>                   <list>
>>                     <ref bean="casAuthenticationProvider"/>
>>                   </list>
>>               </property>
>>       </bean>
>>
>>       <bean id="casAuthenticationProvider"
>> class="org.springframework.security.providers.cas.CasAuthenticationProvider">
>>               <property name="userDetailsService">
>>                       <list>
>>                               <bean 
>> class="org.springframework.security.userdetails.User" />
>>                       </list>
>>               </property>
>>       </bean>
>>
>>
>>
>> Robert Lewis wrote:
>>
>>> So, I have been trying to follow up on this advice and I have run into
>>> an obstacle I need help with.  When I upgrade to Spring Security 2 I see
>>> the bean casAuthoritiesPopulator in securityContext.xml is still needed,
>>> but the class DaoCasAuthoritiesPopulator does not seem to be available
>>> in Spring Security 2. So, what do I replace it with? Do I have to write
>>> a class that returns a UserDetailsService ?
>>>
>>>
>>> Thanks,
>>>
>>> Robert Lewis
>>>
>>>
>>
>> _______________________________________________
>> Yale CAS mailing list
>> [email protected]
>> http://tp.its.yale.edu/mailman/listinfo/cas
>>
>>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
Eduardo Issao Ito
Summa Technologies

"The structure of a system tends to mirror the structure of the group
producing it."
[Mel Conway - April, 1968 Datamation]
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to