From 839ce43302fe2bea6556969fe640b60b272bb399 Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Thu, 22 Feb 2024 17:15:58 +0100 Subject: [PATCH] Do not ignore port when connecting to Shibboleth.SSO --- src/aai/aai.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aai/aai.js b/src/aai/aai.js index a777b53f44c..d669631e6eb 100644 --- a/src/aai/aai.js +++ b/src/aai/aai.js @@ -43,7 +43,7 @@ // Encode the redirect URL targetUrl += window.encodeURIComponent(redirectUrl); - window.location = opts.host + '/Shibboleth.sso/Login?SAMLDS=1&target=' + targetUrl + '&entityID=' + window.encodeURIComponent(e.entityID); + window.location = opts.host + opts.port + '/Shibboleth.sso/Login?SAMLDS=1&target=' + targetUrl + '&entityID=' + window.encodeURIComponent(e.entityID); }; //console.log(opts); if(!opts.target){ @@ -56,7 +56,7 @@ opts.ourEntityID, opts.responseUrl, [ ], - opts.host + '/Shibboleth.sso/Login?SAMLDS=1&target=' + targetUrl + '&entityID='); + opts.host + opts.port + '/Shibboleth.sso/Login?SAMLDS=1&target=' + targetUrl + '&entityID='); djc.discoPath = window.location.origin + (namespace === '' ? namespace : '/' + namespace) + "/assets/"; djc.metadata = [opts.metadataFeed]; djc.subtitle = "Login via Your home institution (e.g. university)";