summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-25 16:40:41 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-05-11 13:36:46 +0200
commit2fa5e0a24e34b109fcd4adb98932e9537884bc9a (patch)
treeac0822860e46ffeb0fee03c5f593dfd49bbc62c5 /lib/private/Server.php
parentd8cde414bd13c327ec2edaf1ae38380073c93e3e (diff)
downloadnextcloud-server-2fa5e0a24e34b109fcd4adb98932e9537884bc9a.tar.gz
nextcloud-server-2fa5e0a24e34b109fcd4adb98932e9537884bc9a.zip
invalidate (delete) session token on logout
add 'last_activity' column to session tokens and delete old ones via a background job
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index a438523dbcd..8af2f02479c 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -209,12 +209,12 @@ class Server extends ServerContainer implements IServerContainer {
});
return $groupManager;
});
- $this->registerService('DefaultTokenMapper', function (Server $c) {
+ $this->registerService('OC\Authentication\Token\DefaultTokenMapper', function (Server $c) {
$dbConnection = $c->getDatabaseConnection();
return new Authentication\Token\DefaultTokenMapper($dbConnection);
});
- $this->registerService('DefaultTokenProvider', function (Server $c) {
- $mapper = $c->query('DefaultTokenMapper');
+ $this->registerService('OC\Authentication\Token\DefaultTokenProvider', function (Server $c) {
+ $mapper = $c->query('OC\Authentication\Token\DefaultTokenMapper');
$crypto = $c->getCrypto();
$config = $c->getConfig();
$logger = $c->getLogger();
@@ -223,7 +223,7 @@ class Server extends ServerContainer implements IServerContainer {
$this->registerService('UserSession', function (Server $c) {
$manager = $c->getUserManager();
$session = new \OC\Session\Memory('');
- $defaultTokenProvider = $c->query('DefaultTokenProvider');
+ $defaultTokenProvider = $c->query('OC\Authentication\Token\DefaultTokenProvider');
$tokenProviders = [
$defaultTokenProvider,
];