Skip to content

Commit

Permalink
added redirection to originalUrl when using SSO
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>
  • Loading branch information
Jean-Baptiste PIN authored and schiessle committed Aug 17, 2018
1 parent 0828185 commit 3f3cd68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Controller/SAMLController.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ public function login($idp) {
$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'));
Expand Down

0 comments on commit 3f3cd68

Please sign in to comment.