shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken in Nashua <kcola...@live.com>
Subject RE: adding roles and adding permissions
Date Thu, 21 Mar 2013 22:53:38 GMT
Well this is my shiro configuration.

The fact that i decided to operate CLASS:PERM:INSTANCE as *:PERM:*

leaves me to believe that the following shiro configuration is sufficient?


        configuration.add(factory.createChain("/roles/anonymous/**").add(factory.roles(),
"anonymous").build());
        configuration.add(factory.createChain("/roles/administrator/**").add(factory.roles(),
"administrator").build());
        configuration.add(factory.createChain("/perms/create/**").add(factory.perms(), "*:create:*").build());
        configuration.add(factory.createChain("/perms/read/**").add(factory.perms(), "*:read:*").build());
        configuration.add(factory.createChain("/perms/update/**").add(factory.perms(), "*:update:*").build());
        configuration.add(factory.createChain("/perms/delete/**").add(factory.perms(), "*:delete:*").build());
        configuration.add(factory.createChain("/authc/**").add(factory.authc()).build());

Do i need to add fixtures to the configuration for my TeamYear class? or other classes for
that matter ?

Thanks for any tips.

I guess I am wondering if I need to tell shiro anything else. 

But that still doesnt explain to me why tapestry-security service is not getting triggered.


 		 	   		  
Mime
View raw message