I've got CAS Auth. working on an app. in general.

Now I want to grab custom roles from a DB. As I understand, I have to implement 
a custom UserDetails ... 
(e.g.  
http://www.ashishpaliwal.com/blog/2009/02/spring-security-%E2%80%93-implementing-custom-userdetails-using-hibernate/
 OR 
http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html)

BUT ... that requires I grab the userName (which comes from UserDetails). Feel 
like I'm in a chicken/egg situation here, or I'm missing something easy.

I'm using the Spring Security method:
https://wiki.jasig.org/display/CASC/Using+the+CAS+Client+3.1+with+Spring+Security

I tried something like this 
(http://stackoverflow.com/questions/6161985/get-userdetails-object-from-security-context-in-spring-mvc-controller)
 with the default UserDetails but no  dice ...

Anyone else done this and/or have some pointers? ... TIA!!

Jason
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to