diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-06-29 21:34:10 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-06-29 21:34:10 +0300 |
commit | f7349588361457f61ce4877c9939ce1852bb7053 (patch) | |
tree | a217c3210106a3de493d233ac5161543bedbc421 /appinfo | |
parent | 487bf7616575aafc5057af1acf14a39da2545f26 (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.php | 1 | ||||
-rw-r--r-- | appinfo/routes.php | 5 |
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', + ], ] ] ); |