mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-04-28 15:24:52 +02:00
Setup account later
Stable11 of https://github.com/nextcloud/user_saml/pull/78 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
2714a876a6
commit
37b9ddf67b
|
@ -60,7 +60,6 @@ switch($config->getAppValue('user_saml', 'type')) {
|
|||
$type = 'saml';
|
||||
break;
|
||||
case 'environment-variable':
|
||||
\OC::$server->getSession()->set('user_saml.samlUserData', $_SERVER);
|
||||
$type = 'environment-variable';
|
||||
break;
|
||||
}
|
||||
|
@ -74,7 +73,7 @@ $redirectSituation = false;
|
|||
// redirected to the SAML login endpoint
|
||||
if(!$userSession->isLoggedIn() &&
|
||||
\OC::$server->getRequest()->getPathInfo() === '/login' &&
|
||||
$type === 'saml') {
|
||||
$type !== '') {
|
||||
$redirectSituation = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -127,6 +127,7 @@ class SAMLController extends Controller {
|
|||
break;
|
||||
case 'environment-variable':
|
||||
$ssoUrl = $this->urlGenerator->getAbsoluteURL('/');
|
||||
$this->session->set('user_saml.samlUserData', $_SERVER);
|
||||
try {
|
||||
$this->autoprovisionIfPossible($this->session->get('user_saml.samlUserData'));
|
||||
} catch (NoUserFoundException $e) {
|
||||
|
|
Loading…
Reference in a new issue