Hi,

I tried the same thing. But somehow its not working in may case. My
manager.xml contains

<Realm 
    className="org.jasig.cas.client.tomcat.v6.AssertionCasRealm" 
    roleAttributeName="authorities" /> 
  <Valve 
    className="org.jasig.cas.client.tomcat.v6.Saml11Authenticator" 
    encoding="UTF-8" 
    casServerLoginUrl="https://localhost:8443/cas/login"; 
    casServerUrlPrefix="https://localhost:8443/cas/"; 
    serverName="localhost:8443" 
    /> 

When I tried, below code, then its returning me actual roles. 
Am I missing any step or is there something wrong with my setup?

AttributePrincipalImpl principal = (AttributePrincipalImpl)
request.getUserPrincipal();
Map map = principal.getAttributes();
String authorities = (String) map.get("authorities");

Thanks



--
View this message in context: 
http://jasig.275507.n4.nabble.com/CAS-JAAS-TOMCAT-tp3007800p4661310.html
Sent from the CAS Users mailing list archive at Nabble.com.

-- 
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