diff options
author | Artur Neumann <artur@jankaritech.com> | 2022-11-21 17:28:21 +0545 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-03-14 17:13:29 +0100 |
commit | f634badf1218baff90acde501859081e3765d79f (patch) | |
tree | b38c95825cc82e6497da36e742952fecc8452ae0 /lib/private/Server.php | |
parent | 21be557e2afe9e3a1e024d9618a377816d73d63a (diff) | |
download | nextcloud-server-f634badf1218baff90acde501859081e3765d79f.tar.gz nextcloud-server-f634badf1218baff90acde501859081e3765d79f.zip |
public interface to invalidate tokens of user
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 9a4ee0da198..f1e96170886 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -163,6 +163,7 @@ use OCA\Theming\Util; use OCP\Accounts\IAccountManager; use OCP\App\IAppManager; use OCP\Authentication\LoginCredentials\IStore; +use OCP\Authentication\Token\IProvider as OCPIProvider; use OCP\BackgroundJob\IJobList; use OCP\Collaboration\AutoComplete\IManager; use OCP\Collaboration\Reference\IReferenceManager; @@ -550,6 +551,7 @@ class Server extends ServerContainer implements IServerContainer { }); $this->registerAlias(IStore::class, Store::class); $this->registerAlias(IProvider::class, Authentication\Token\Manager::class); + $this->registerAlias(OCPIProvider::class, Authentication\Token\Manager::class); $this->registerService(\OC\User\Session::class, function (Server $c) { $manager = $c->get(IUserManager::class); |