You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by mylas <am...@gmail.com> on 2011/04/18 17:34:06 UTC

Using @RequiresRoles and @RequiresPermissions in a webapp

I have not find any help to use @RequiresRoles and @RequiresPermissions in a
web environnement.
It this possible?

Thanks.

--
View this message in context: http://shiro-user.582556.n2.nabble.com/Using-RequiresRoles-and-RequiresPermissions-in-a-webapp-tp6284084p6284084.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: Using @RequiresRoles and @RequiresPermissions in a webapp

Posted by Kalle Korhonen <ka...@gmail.com>.
Just to add to Les' reply, each web framework typically supplies its
own Shiro integration. For Tapestry 5, the Shiro security annotations
are supported out-of-the box via tapestry-security module
(http://tynamo.org/tapestry-security+guide). I think there are similar
integrations available for Wicket and Grails but haven't checked.

Kalle


On Mon, Apr 18, 2011 at 10:22 PM, Les Hazlewood <lh...@apache.org> wrote:
> Hy Mylas,
>
> Yes, this is very possible, but it depends on the AOP framework you
> want to use.  For example, if you want to use AspectJ to enable
> AOP/annotations, you can see the Shiro AspectJ sample application for
> some ideas:
>
> https://svn.apache.org/repos/asf/shiro/trunk/samples/aspectj/
>
> Also, if you're using a Spring application, there is built-in support
> for enabling annotations, covered here:
>
> http://shiro.apache.org/spring.html
>
> What AOP framework are you using in your application?
>
> Cheers,
>
> Les
>
> On Mon, Apr 18, 2011 at 8:34 AM, mylas <am...@gmail.com> wrote:
>> I have not find any help to use @RequiresRoles and @RequiresPermissions in a
>> web environnement.
>> It this possible?
>>
>> Thanks.
>>
>> --
>> View this message in context: http://shiro-user.582556.n2.nabble.com/Using-RequiresRoles-and-RequiresPermissions-in-a-webapp-tp6284084p6284084.html
>> Sent from the Shiro User mailing list archive at Nabble.com.
>

Re: Using @RequiresRoles and @RequiresPermissions in a webapp

Posted by Janne Jalkanen <ja...@ecyrd.com>.
And for Stripes: http://www.ecyrd.com/ButtUgly/wiki/Main_blogentry_100910_1

That also serves as an example on how you can integrate Shiro with your own favourite framework. It's pretty simple, really.

/Janne

On 18 Apr 2011, at 22:22, Les Hazlewood wrote:

> Hy Mylas,
> 
> Yes, this is very possible, but it depends on the AOP framework you
> want to use.  For example, if you want to use AspectJ to enable
> AOP/annotations, you can see the Shiro AspectJ sample application for
> some ideas:
> 
> https://svn.apache.org/repos/asf/shiro/trunk/samples/aspectj/
> 
> Also, if you're using a Spring application, there is built-in support
> for enabling annotations, covered here:
> 
> http://shiro.apache.org/spring.html
> 
> What AOP framework are you using in your application?
> 
> Cheers,
> 
> Les
> 
> On Mon, Apr 18, 2011 at 8:34 AM, mylas <am...@gmail.com> wrote:
>> I have not find any help to use @RequiresRoles and @RequiresPermissions in a
>> web environnement.
>> It this possible?
>> 
>> Thanks.
>> 
>> --
>> View this message in context: http://shiro-user.582556.n2.nabble.com/Using-RequiresRoles-and-RequiresPermissions-in-a-webapp-tp6284084p6284084.html
>> Sent from the Shiro User mailing list archive at Nabble.com.


Re: Using @RequiresRoles and @RequiresPermissions in a webapp

Posted by Les Hazlewood <lh...@apache.org>.
Hy Mylas,

Yes, this is very possible, but it depends on the AOP framework you
want to use.  For example, if you want to use AspectJ to enable
AOP/annotations, you can see the Shiro AspectJ sample application for
some ideas:

https://svn.apache.org/repos/asf/shiro/trunk/samples/aspectj/

Also, if you're using a Spring application, there is built-in support
for enabling annotations, covered here:

http://shiro.apache.org/spring.html

What AOP framework are you using in your application?

Cheers,

Les

On Mon, Apr 18, 2011 at 8:34 AM, mylas <am...@gmail.com> wrote:
> I have not find any help to use @RequiresRoles and @RequiresPermissions in a
> web environnement.
> It this possible?
>
> Thanks.
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/Using-RequiresRoles-and-RequiresPermissions-in-a-webapp-tp6284084p6284084.html
> Sent from the Shiro User mailing list archive at Nabble.com.