I have faced the same problem: configuring multiple realms, set
authentication strategy to firstSuccesfulStrategy [1], but the
ModularRealmAuthenticator will continue to check all configured realms. It
still works as expected (if one realm succeeds, then the authentication
succeeds also). I have found one possible solution here [2], but is not
implemented yet.

[1]
https://shiro.apache.org/static/1.2.3/apidocs/org/apache/shiro/authc/pam/FirstSuccessfulStrategy.html
[2] https://issues.apache.org/jira/browse/SHIRO-540

On Wed, Jan 27, 2016 at 10:25 PM, Lenny Primak <[email protected]>
wrote:

> Make sure you are actually using the correct strategy.
> I’ve seen instances when it’s in the config file but wasn’t actually
> getting used.
>
> > On Jan 27, 2016, at 2:23 PM, anumolumurali <[email protected]> wrote:
> >
> > Yes, I am using the FirstSuccessfulAuthenticationStrategy, but still
> shiro
> > checks all the realms to get the info.
> >
> >
> >
> > --
> > View this message in context:
> http://shiro-user.582556.n2.nabble.com/Mutliple-realms-with-custom-Authentiction-tp7580911p7580914.html
> > Sent from the Shiro User mailing list archive at Nabble.com.
> >
>
>

Reply via email to