mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-04 10:03:42 +02:00
added redirection to originalUrl when using SSO
Signed-off-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>
This commit is contained in:
parent
0828185832
commit
3f3cd68ef4
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue