You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Les Hazlewood <lh...@apache.org> on 2012/10/05 00:16:48 UTC
Re: onLogout implementation in AuthenticatingRealm subclass doesn't
get called
The Realm implementation must implement the LogoutAware interface (all
of Shiro's Authenticating and Authorizing realm subclasses implement
this).
The logic works like this:
- On logout, the SecurityManager's Authenticator is notified of that
Subject logging out (line 552 in DefaultSecurityManager):
http://shiro.apache.org/static/current/xref/org/apache/shiro/mgt/DefaultSecurityManager.html#552
- The ModularRealmAuthenticator which iterates over the Realms and, if
the realm is an 'instanceof' LogoutAware, calls its onLogout method
(line 284):
http://shiro.apache.org/static/current/xref/org/apache/shiro/authc/pam/ModularRealmAuthenticator.html#284
HTH,
Les Hazlewood | @lhazlewood
CTO, Stormpath | http://stormpath.com | @goStormpath | 888.391.5282
PMC Chair, Apache Shiro: http://shiro.apache.org
Stormpath wins GigaOM Structure Launchpad Award! http://bit.ly/MvZkMk
On Tue, Sep 18, 2012 at 1:40 AM, vdaemon <vd...@hotmail.com> wrote:
>
> Perhaps this could help:
> http://shiro-user.582556.n2.nabble.com/Improvements-in-ModularRealmAuthenticator-and-ModularRealmAuthorizer-td7078260.html
> <http://shiro-user.582556.n2.nabble.com/Improvements-in-ModularRealmAuthenticator-and-ModularRealmAuthorizer-td7078260.html>
>
>
>
> --
> View this message in context: http://shiro-user.582556.n2.nabble.com/onLogout-implementation-in-AuthenticatingRealm-subclass-doesn-t-get-called-tp7577801p7577802.html
> Sent from the Shiro User mailing list archive at Nabble.com.