You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by Les Hazlewood <lh...@apache.org> on 2011/07/01 07:58:48 UTC
Re: Shiro and Stateless Applications
Note to all following this thread:
I've just updated the codebase to provide out-of-the-box web support
for this via a 'noSession' filter added to the default filters pool.
It can be used in filter chains, for example
[urls]
...
/rest/** = noSession, authcBasic
The 'noSession' filter will prevent both Shiro and application
developers from creating a new session for that particular filter
chain. Please see the last few comments on
https://issues.apache.org/jira/browse/SHIRO-266 for more details.
This should provide an out-of-the-box solution for anyone doing REST
or SOAP so they don't have to implement a web-specific
SessionStorageEvaluator themselves.
Feedback welcome.
Cheers,
--
Les Hazlewood
CTO, Katasoft | http://www.katasoft.com | 888.391.5282
twitter: http://twitter.com/lhazlewood
katasoft blog: http://www.katasoft.com/blogs/lhazlewood
personal blog: http://leshazlewood.com
Re: Shiro and Stateless Applications
Posted by Les Hazlewood <lh...@apache.org>.
Sounds good Brian - let us know if you come across any issues!
Best,
--
Les Hazlewood
CTO, Katasoft | http://www.katasoft.com | 888.391.5282
twitter: http://twitter.com/lhazlewood
katasoft blog: http://www.katasoft.com/blogs/lhazlewood
personal blog: http://leshazlewood.com
Re: Shiro and Stateless Applications
Posted by Brian Demers <br...@gmail.com>.
Just catching up on this thread. After reading the wiki doc, it looks
trivial to implement a SessionStorageEvaluator
I hobbled something together with Shiro 1.1 which I think can be cleanly
replaced now. I'll keep you posted.
Nice work!
On Fri, Jul 1, 2011 at 1:58 AM, Les Hazlewood <lh...@apache.org> wrote:
> Note to all following this thread:
>
> I've just updated the codebase to provide out-of-the-box web support
> for this via a 'noSession' filter added to the default filters pool.
> It can be used in filter chains, for example
>
> [urls]
> ...
> /rest/** = noSession, authcBasic
>
> The 'noSession' filter will prevent both Shiro and application
> developers from creating a new session for that particular filter
> chain. Please see the last few comments on
> https://issues.apache.org/jira/browse/SHIRO-266 for more details.
>
> This should provide an out-of-the-box solution for anyone doing REST
> or SOAP so they don't have to implement a web-specific
> SessionStorageEvaluator themselves.
>
> Feedback welcome.
>
> Cheers,
>
> --
> Les Hazlewood
> CTO, Katasoft | http://www.katasoft.com | 888.391.5282
> twitter: http://twitter.com/lhazlewood
> katasoft blog: http://www.katasoft.com/blogs/lhazlewood
> personal blog: http://leshazlewood.com
>