Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/user_saml.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-29 21:34:10 +0300
committerLukas Reschke <lukas@owncloud.com>2016-06-29 21:34:10 +0300
commitf7349588361457f61ce4877c9939ce1852bb7053 (patch)
treea217c3210106a3de493d233ac5161543bedbc421 /appinfo
parent487bf7616575aafc5057af1acf14a39da2545f26 (diff)
Add possibility to enforce local user account
Fixes https://github.com/nextcloud/user_saml/issues/12 Fixes https://github.com/nextcloud/user_saml/issues/5
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php1
-rw-r--r--appinfo/routes.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 05ba9f80..c81cf775 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -39,6 +39,7 @@ $userBackend = new \OCA\User_SAML\UserBackend(
\OC::$server->getSession(),
\OC::$server->getDb()
);
+$userBackend->registerBackends(\OC::$server->getUserManager()->getBackends());
OC_User::useBackend($userBackend);
OC_User::handleApacheAuth();
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 3ce6eda7..cae7aadd 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -50,6 +50,11 @@ namespace OCA\User_SAML\AppInfo;
'url' => '/saml/sls',
'verb' => 'GET',
],
+ [
+ 'name' => 'SAML#notProvisioned',
+ 'url' => '/saml/notProvisioned',
+ 'verb' => 'GET',
+ ],
]
]
);