Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions public/embedded-wayf_js.en
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var wayf_sp_entityID;
var wayf_URL;
var wayf_return_url;
var wayf_sp_handlerURL;
var wayf_eduGAIN_DS_url;

var wayf_use_discovery_service;
var wayf_use_small_logo;
Expand Down Expand Up @@ -2623,7 +2624,10 @@ function submitForm(){
setCookie('_saml_idp', encodeBase64(NonFedEntityID) , 100);

// Redirect user to SP handler
if (wayf_use_discovery_service){
if (wayf_eduGAIN_DS_url && NonFedEntityID == wayf_eduGAIN_DS_url){
redirect_url = wayf_eduGAIN_DS_url + '?target=' + encodeURIComponent(wayf_return_url);
window.location = redirect_url;
} else if (wayf_use_discovery_service){
redirect_url = wayf_sp_samlDSURL + (wayf_sp_samlDSURL.indexOf('?')>=0?'&':'?')+'entityID='
+ encodeURIComponent(NonFedEntityID)
+ '&target=' + encodeURIComponent(wayf_return_url);
Expand Down Expand Up @@ -2880,6 +2884,10 @@ function decodeBase64(input) {
config_ok = false;
}

if(typeof(wayf_eduGAIN_DS_url) == "undefined"){
wayf_eduGAIN_DS_url = '';
}

if(typeof(wayf_discofeed_url) == "undefined"){
wayf_discofeed_url = '';
}
Expand Down Expand Up @@ -7904,7 +7912,7 @@ function decodeBase64(input) {
writeHTML('</td>');
writeHTML('</tr>');
writeHTML('</table>');

// Close form
writeHTML('</form>');

Expand Down
10 changes: 9 additions & 1 deletion public/embedded-wayf_js.ja
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var wayf_sp_entityID;
var wayf_URL;
var wayf_return_url;
var wayf_sp_handlerURL;
var wayf_eduGAIN_DS_url;

var wayf_use_discovery_service;
var wayf_use_small_logo;
Expand Down Expand Up @@ -2623,7 +2624,10 @@ function submitForm(){
setCookie('_saml_idp', encodeBase64(NonFedEntityID) , 100);

// Redirect user to SP handler
if (wayf_use_discovery_service){
if (wayf_eduGAIN_DS_url && NonFedEntityID == wayf_eduGAIN_DS_url){
redirect_url = wayf_eduGAIN_DS_url + '?target=' + encodeURIComponent(wayf_return_url);
window.location = redirect_url;
} else if (wayf_use_discovery_service){
redirect_url = wayf_sp_samlDSURL + (wayf_sp_samlDSURL.indexOf('?')>=0?'&':'?')+'entityID='
+ encodeURIComponent(NonFedEntityID)
+ '&target=' + encodeURIComponent(wayf_return_url);
Expand Down Expand Up @@ -2880,6 +2884,10 @@ function decodeBase64(input) {
config_ok = false;
}

if(typeof(wayf_eduGAIN_DS_url) == "undefined"){
wayf_eduGAIN_DS_url = '';
}

if(typeof(wayf_discofeed_url) == "undefined"){
wayf_discofeed_url = '';
}
Expand Down
Loading