added redirection to originalUrl when using SSO

Signed-off-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>
This commit is contained in:
Jean-Baptiste PIN 2018-08-17 14:03:58 +02:00 committed by Bjoern Schiessle
parent 0828185832
commit 3f3cd68ef4
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 4 additions and 1 deletions

View File

@ -161,7 +161,10 @@ class SAMLController extends Controller {
$this->session->set('user_saml.Idp', $idp);
break;
case 'environment-variable':
$ssoUrl = $this->urlGenerator->getAbsoluteURL('/');
$ssoUrl = $this->request->getParam('originalUrl', '');
if (empty($ssoUrl)) {
$ssoUrl = $this->urlGenerator->getAbsoluteURL('/');
}
$this->session->set('user_saml.samlUserData', $_SERVER);
try {
$this->autoprovisionIfPossible($this->session->get('user_saml.samlUserData'));