Study: http://jasig.github.io/cas/4.1.x/protocol/CAS-Protocol-Specification.html#p3servicevalidate-cas-30
http://jasig.github.io/cas/4.1.x/integration/Attribute-Release.html From: [email protected] [mailto:[email protected]] On Behalf Of jason Sent: Tuesday, December 22, 2015 11:20 PM To: CAS Community <[email protected]> Subject: [cas-user] how to get shiro roles and permissions attributes from cas server when i use shiro-cas client buile web application i want to get shiro roles and permissions attributes from cas server the cas server: i custom a AttributeDao to response roles and permissions info public class BlogStubPersonAttributeDao extends StubPersonAttributeDao { @Override public IPersonAttributes getPerson(String uid) { Map<String, List<Object>> attributes = new HashMap<String, List<Object>>(); attributes.put("userid", Collections.singletonList((Object)uid)); attributes.put("roles", Collections.singletonList((Object)"role_admin")); attributes.put("permissions", Collections.singletonList((Object)"user:create")); attributes.put("test", Collections.singletonList((Object)"test")); return new AttributeNamedPersonImpl(attributes); } } and deployerConfigContext.xml <bean id="attributeRepository" class="org.jasig.services.persondir.support.BlogStubPersonAttributeDao" /> cas client use shiro 1. <bean id="casRealm" class="org.apache.shiro.cas.CasRealm"> 2. <property name="defaultRoles" value="admin,user"/> 3. <property name="defaultPermissions" value="user:create,user:update"/> 4. <property name="roleAttributeNames" value="roles"/> 5. <property name="permissionAttributeNames" value="permissions"/> 6. <property name="casServerUrlPrefix" value="https://localhost:8443/chapter14-server"/> 7. <property name="casService" value="https://localhost:9443/chapter14-client/cas"/> 8. </bean> but the cas server can not response roles and permissions so how to get shiro roles and permissions attributes from cas server when i used below <https://github.com/apache/shiro/blob/1.2.x/support/cas/src/main/java/org/apache/shiro/cas/CasRealm.java#L162>https://github.com/apache/shiro/blob/1.2.x/support/cas/src/main/java/org/apache/shiro/cas/CasRealm.java#L162--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 anemail to [email protected]<mailto:[email protected]> .Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. -- 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]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
