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 Rollo <da...@gmail.com> on 2013/03/08 03:59:17 UTC

Realm Strategy approach

Hi,

I have a question about how to build a solution in shiro involving 3 
realms. Given realms A, B, and C, here are the rules.

A user must authenticate with either realm A or B.
A user must also authenticate with realm C.

Is their an existing strategy (or shiro.ini setup) that supports this 
sort of thing out of the box? Or should I create a custom strategy? 
Other approaches?

Thanks,
Dan

Re: Realm Strategy approach

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

This type of strategy is not implemented out-of-the-box.  I think the
best thing to do is to create a custom AuthenticationStrategy
implementation.

HTH,

Les

On Thu, Mar 7, 2013 at 6:59 PM, Dan Rollo <da...@gmail.com> wrote:
> Hi,
>
> I have a question about how to build a solution in shiro involving 3 realms.
> Given realms A, B, and C, here are the rules.
>
> A user must authenticate with either realm A or B.
> A user must also authenticate with realm C.
>
> Is their an existing strategy (or shiro.ini setup) that supports this sort
> of thing out of the box? Or should I create a custom strategy? Other
> approaches?
>
> Thanks,
> Dan