Skip to content

Commit

Permalink
shib redirect admin
Browse files Browse the repository at this point in the history
  • Loading branch information
rserry committed Oct 9, 2023
1 parent 305a46c commit ed094b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions module/CommonBundle/Controller/Admin/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ private function getShibbolethUrl()

$shibbolethUrl .= '?source=admin';

if ($this->getParam('redirect') !== null) {
$shibbolethUrl .= '%26redirect=' . urlencode($this->getParam('redirect'));
$this->getSentryClient()->logMessage('shiburl: ' . $shibbolethUrl);
}else {
$this->getSentryClient()->logMessage("no redirect param");
}

$server = $this->getRequest()->getServer();
if (isset($server['X-Forwarded-Host']) && isset($server['REQUEST_URI'])) {
$shibbolethUrl .= '%26redirect=' . urlencode('https://' . $server['X-Forwarded-Host'] . $server['REQUEST_URI']);
Expand Down

0 comments on commit ed094b2

Please sign in to comment.