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:
authorBjoern Schiessle <bjoern@schiessle.org>2018-07-10 18:33:51 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2018-08-03 13:43:19 +0300
commitafeee8beaa8c07593d2c4c5256c869e44172f436 (patch)
tree25820581719c417988e6ccf1954d2e863d9b3eb6 /appinfo
parentba2e04f7b814937c9b20b28ddad268bc0fd233e3 (diff)
show all configured IdP's on the login screen
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index d1ef6712..1ec876a1 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -119,9 +119,11 @@ if($useSamlForDesktopClients === '1') {
}
}
-$multipleUserBackEnds = $config->getAppValue('user_saml', 'general-allow_multiple_user_back_ends', '0');
+$multipleUserBackEnds = $samlSettings->allowMultipleUserBackEnds();
+$configuredIdps = $samlSettings->getListOfIdps();
+$showLoginOptions = $multipleUserBackEnds || count($configuredIdps) > 1;
-if ($redirectSituation === true && $multipleUserBackEnds === '1') {
+if ($redirectSituation === true && $showLoginOptions) {
$params = $request->getParams();
$redirectUrl = '';
if(isset($params['redirect_url'])) {