I cannot find an example off hand but I've had to work around this before.
Your best bet is to create your own AuthenticationStrategy (possibly
extend ModularRealmAuthenticator and change/wrap the
`doMultiRealmAuthentication` method.

On Fri, Dec 7, 2018 at 10:03 AM [email protected] <[email protected]>
wrote:

> Sadly, It doesn't appear to do what it sounds like it should.  I have the
> FirstSuccessfulStrategy in place.  When my first Realm is checked,
> authentication is successful, but my second Realm is still checked anyway.
> It happens to fail, but I am still Authenticated into my App.  So it is
> good
> that I get logged in ok, but odd that it keeps checking both Realms, even
> though the first one succeeds.
>
> The 2nd part, and the real issue I have, is that when checking for
> Authorization (after getting logged in ok), we check BOTH Realms instead of
> ONLY the Realm that I was able to log in successfully on.  I would like it
> to SKIP any Realm that did not Authenticate the User successfully.
>
>
>
> --
> Sent from: http://shiro-user.582556.n2.nabble.com/
>

Reply via email to