You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Dan Diephouse <da...@netzooid.com> on 2011/01/11 00:33:59 UTC

Shiro integration for Mule

Hi folks,
Just thought I'd pass along that I wrote some integration for Mule (an open
source ESB) this last week:

http://blogs.mulesoft.org/apache-shiro-support-for-mule/

<http://blogs.mulesoft.org/apache-shiro-support-for-mule/>Let me know if you
find it of use or have any feedback. Cheers,
Dan

-- 
Dan Diephouse
http://netzooid.com/blog

Re: Shiro integration for Mule

Posted by Les Hazlewood <lh...@apache.org>.
Ah, ok - I wanted to point it out just in case.  I'm glad I did!

Cheers,

Les

On Thu, Jan 13, 2011 at 11:41 AM, Dan Diephouse <da...@netzooid.com> wrote:
> Beginners mistake? I'll fix this - I know see this is pretty clearly
> documented. I must have missed it the first time.
> Dan
>
> On Thu, Jan 13, 2011 at 11:03 AM, Les Hazlewood <lh...@apache.org>
> wrote:
>>
>> Hi Dan,
>>
>> I looked at the ShiroAuthenticationProvider.java source code - why are
>> you using a DelegatingSubject directly instead of using the
>> Subject.Builder?
>>
>> The DelegatingSubject class is mostly there as an implementation
>> detail - it shouldn't typically be referenced directly.
>>
>> Regards,
>>
>> Les
>>
>> On Wed, Jan 12, 2011 at 6:27 PM, Dan Diephouse <da...@netzooid.com> wrote:
>> > Funny you should ask, I was just working on that. Mule doesn't depend on
>> > the
>> > servlet spec (we have alternate transports which are non servlet based),
>> > so
>> > I can't reuse the servlet filters from Shiro. So I had to write a new
>> > HttpUrlPatternFilter for mule. I just committed it to github and there's
>> > an
>> > example in the README.
>> > https://github.com/mulesoft/mule-module-shiro
>> > Next up, getting the Shrio cookie integration working correctly...
>> > Dan
>> >
>> > On Wed, Jan 12, 2011 at 4:56 PM, Les Hazlewood <lh...@apache.org>
>> > wrote:
>> >>
>> >> Hi Dan,
>> >>
>> >> This is awesome - thanks for sharing.  I don't understand Mule
>> >> filtering too well - does the blog example use the ShiroFilter and
>> >> it's path-matching filter chain capabilities?
>> >>
>> >> Best,
>> >>
>> >> Les
>> >>
>> >> On Mon, Jan 10, 2011 at 3:33 PM, Dan Diephouse <da...@netzooid.com>
>> >> wrote:
>> >> > Hi folks,
>> >> > Just thought I'd pass along that I wrote some integration for Mule
>> >> > (an
>> >> > open
>> >> > source ESB) this last week:
>> >> > http://blogs.mulesoft.org/apache-shiro-support-for-mule/
>> >> > Let me know if you find it of use or have any feedback. Cheers,
>> >> > Dan
>> >> > --
>> >> > Dan Diephouse
>> >> > http://netzooid.com/blog
>> >
>> >
>> >
>> > --
>> > Dan Diephouse
>> > http://netzooid.com/blog
>
>
>
> --
> Dan Diephouse
> http://netzooid.com/blog

Re: Shiro integration for Mule

Posted by Dan Diephouse <da...@netzooid.com>.
Beginners mistake? I'll fix this - I know see this is pretty clearly
documented. I must have missed it the first time.

Dan

On Thu, Jan 13, 2011 at 11:03 AM, Les Hazlewood <lh...@apache.org>wrote:

> Hi Dan,
>
> I looked at the ShiroAuthenticationProvider.java source code - why are
> you using a DelegatingSubject directly instead of using the
> Subject.Builder?
>
> The DelegatingSubject class is mostly there as an implementation
> detail - it shouldn't typically be referenced directly.
>
> Regards,
>
> Les
>
> On Wed, Jan 12, 2011 at 6:27 PM, Dan Diephouse <da...@netzooid.com> wrote:
> > Funny you should ask, I was just working on that. Mule doesn't depend on
> the
> > servlet spec (we have alternate transports which are non servlet based),
> so
> > I can't reuse the servlet filters from Shiro. So I had to write a new
> > HttpUrlPatternFilter for mule. I just committed it to github and there's
> an
> > example in the README.
> > https://github.com/mulesoft/mule-module-shiro
> > Next up, getting the Shrio cookie integration working correctly...
> > Dan
> >
> > On Wed, Jan 12, 2011 at 4:56 PM, Les Hazlewood <lh...@apache.org>
> > wrote:
> >>
> >> Hi Dan,
> >>
> >> This is awesome - thanks for sharing.  I don't understand Mule
> >> filtering too well - does the blog example use the ShiroFilter and
> >> it's path-matching filter chain capabilities?
> >>
> >> Best,
> >>
> >> Les
> >>
> >> On Mon, Jan 10, 2011 at 3:33 PM, Dan Diephouse <da...@netzooid.com>
> wrote:
> >> > Hi folks,
> >> > Just thought I'd pass along that I wrote some integration for Mule (an
> >> > open
> >> > source ESB) this last week:
> >> > http://blogs.mulesoft.org/apache-shiro-support-for-mule/
> >> > Let me know if you find it of use or have any feedback. Cheers,
> >> > Dan
> >> > --
> >> > Dan Diephouse
> >> > http://netzooid.com/blog
> >
> >
> >
> > --
> > Dan Diephouse
> > http://netzooid.com/blog
>



-- 
Dan Diephouse
http://netzooid.com/blog

Re: Shiro integration for Mule

Posted by Les Hazlewood <lh...@apache.org>.
Hi Dan,

I looked at the ShiroAuthenticationProvider.java source code - why are
you using a DelegatingSubject directly instead of using the
Subject.Builder?

The DelegatingSubject class is mostly there as an implementation
detail - it shouldn't typically be referenced directly.

Regards,

Les

On Wed, Jan 12, 2011 at 6:27 PM, Dan Diephouse <da...@netzooid.com> wrote:
> Funny you should ask, I was just working on that. Mule doesn't depend on the
> servlet spec (we have alternate transports which are non servlet based), so
> I can't reuse the servlet filters from Shiro. So I had to write a new
> HttpUrlPatternFilter for mule. I just committed it to github and there's an
> example in the README.
> https://github.com/mulesoft/mule-module-shiro
> Next up, getting the Shrio cookie integration working correctly...
> Dan
>
> On Wed, Jan 12, 2011 at 4:56 PM, Les Hazlewood <lh...@apache.org>
> wrote:
>>
>> Hi Dan,
>>
>> This is awesome - thanks for sharing.  I don't understand Mule
>> filtering too well - does the blog example use the ShiroFilter and
>> it's path-matching filter chain capabilities?
>>
>> Best,
>>
>> Les
>>
>> On Mon, Jan 10, 2011 at 3:33 PM, Dan Diephouse <da...@netzooid.com> wrote:
>> > Hi folks,
>> > Just thought I'd pass along that I wrote some integration for Mule (an
>> > open
>> > source ESB) this last week:
>> > http://blogs.mulesoft.org/apache-shiro-support-for-mule/
>> > Let me know if you find it of use or have any feedback. Cheers,
>> > Dan
>> > --
>> > Dan Diephouse
>> > http://netzooid.com/blog
>
>
>
> --
> Dan Diephouse
> http://netzooid.com/blog

Re: Shiro integration for Mule

Posted by Dan Diephouse <da...@netzooid.com>.
Funny you should ask, I was just working on that. Mule doesn't depend on the
servlet spec (we have alternate transports which are non servlet based), so
I can't reuse the servlet filters from Shiro. So I had to write a new
HttpUrlPatternFilter for mule. I just committed it to github and there's an
example in the README.

https://github.com/mulesoft/mule-module-shiro

<https://github.com/mulesoft/mule-module-shiro>Next up, getting the Shrio
cookie integration working correctly...

Dan

On Wed, Jan 12, 2011 at 4:56 PM, Les Hazlewood <lh...@apache.org>wrote:

> Hi Dan,
>
> This is awesome - thanks for sharing.  I don't understand Mule
> filtering too well - does the blog example use the ShiroFilter and
> it's path-matching filter chain capabilities?
>
> Best,
>
> Les
>
> On Mon, Jan 10, 2011 at 3:33 PM, Dan Diephouse <da...@netzooid.com> wrote:
> > Hi folks,
> > Just thought I'd pass along that I wrote some integration for Mule (an
> open
> > source ESB) this last week:
> > http://blogs.mulesoft.org/apache-shiro-support-for-mule/
> > Let me know if you find it of use or have any feedback. Cheers,
> > Dan
> > --
> > Dan Diephouse
> > http://netzooid.com/blog
>



-- 
Dan Diephouse
http://netzooid.com/blog

Re: Shiro integration for Mule

Posted by Les Hazlewood <lh...@apache.org>.
Hi Dan,

This is awesome - thanks for sharing.  I don't understand Mule
filtering too well - does the blog example use the ShiroFilter and
it's path-matching filter chain capabilities?

Best,

Les

On Mon, Jan 10, 2011 at 3:33 PM, Dan Diephouse <da...@netzooid.com> wrote:
> Hi folks,
> Just thought I'd pass along that I wrote some integration for Mule (an open
> source ESB) this last week:
> http://blogs.mulesoft.org/apache-shiro-support-for-mule/
> Let me know if you find it of use or have any feedback. Cheers,
> Dan
> --
> Dan Diephouse
> http://netzooid.com/blog

Re: Shiro integration for Mule

Posted by Alex Salazar <al...@alexsalazar.com>.
Hi Dan,

This is great!  Thank you so much for writing it and sharing it with
everyone.  I've seen it light up on twitter and expect it to really help the
community and adoption.

Again, big thanks.

Alex

On Mon, Jan 10, 2011 at 3:33 PM, Dan Diephouse <da...@netzooid.com> wrote:

> Hi folks,
> Just thought I'd pass along that I wrote some integration for Mule (an open
> source ESB) this last week:
>
> http://blogs.mulesoft.org/apache-shiro-support-for-mule/
>
> <http://blogs.mulesoft.org/apache-shiro-support-for-mule/>Let me know if
> you find it of use or have any feedback. Cheers,
> Dan
>
> --
> Dan Diephouse
> http://netzooid.com/blog
>