Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McFadden committed Sep 30, 2024
2 parents b7a9437 + 54999af commit 2aefcde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions application/views/authHelpers/autoRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ function (f) {
document.cookie = "_check_is_passive=" + window.location + ";path=/; SameSite=None; Secure";
// Redirect to Shibboleth handler
if(typeof basePath == "undefined") {
basePath = window.Elevator.config.instance.base.path;
}
window.location.href = "https://" + window.location.hostname + "/Shibboleth.sso/Login?isPassive=true&target=" + encodeURIComponent("https://"+window.location.hostname + basePath + "/loginManager/remoteLogin/true?redirect=" + encodeURIComponent(window.location));
}
Expand Down
2 changes: 1 addition & 1 deletion application/views/vueTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function makeJavaScriptConfig($instance, $config, $template) {
window.Elevator.config.instance.base.origin = window.location.origin;
window.Elevator.config.instance.base.url = `${window.location.origin}${window.Elevator.config.instance.base.path}`;
</script>

<?=$this->user_model->getAuthHelper()->templateView();?>
<link rel="stylesheet" href="/assets/elevator-ui/dist/<?= $cssFile ?>">
<?php if (isset($this->instance) && $this->instance->getUseCustomCSS()): ?>
<link rel="stylesheet" href="<?= $customCSSFile ?>?hash=<?= $customCSSHash ?>">
Expand Down

0 comments on commit 2aefcde

Please sign in to comment.