+ public function invalidateSessionsForUser( User $user ) {
+ global $wgAuth;
+
+ $user->setToken();
+ $user->saveSettings();
+
+ $wgAuth->getUserInstance( $user )->resetAuthToken();
+
+ foreach ( $this->getProviders() as $provider ) {
+ $provider->invalidateSessionsForUser( $user );
+ }
+ }
+