mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 17:14:53 +02:00
only call handleApacheAuth() if we login via environment variables
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
845977a8ab
commit
e653762bb2
|
@ -53,7 +53,6 @@ $userBackend = new \OCA\User_SAML\UserBackend(
|
|||
);
|
||||
$userBackend->registerBackends(\OC::$server->getUserManager()->getBackends());
|
||||
OC_User::useBackend($userBackend);
|
||||
OC_User::handleApacheAuth();
|
||||
|
||||
// Setting up the one login config may fail, if so, do not catch the requests later.
|
||||
$returnScript = false;
|
||||
|
@ -74,6 +73,10 @@ switch($config->getAppValue('user_saml', 'type')) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($type === 'environment-variable') {
|
||||
OC_User::handleApacheAuth();
|
||||
}
|
||||
|
||||
if($returnScript === true) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue