diff --git a/etc/config.dist.php b/etc/config.dist.php index 8cee17aa44bd294b0373d7022a2bbd0a3542518a..a30764d6e2b45b8976298bcae0a55ea7d42d4068 100644 --- a/etc/config.dist.php +++ b/etc/config.dist.php @@ -82,6 +82,11 @@ // Config to change the number of IdP fetched when using Select2 dropdown //$select2PageSize = 100; +// For Select2 to work in embedded WAYF, CORS must be enabled. +// This settings allows to limit origins +// default: * +//$allowedCORSDomain = "*"; + // Number of previously used Identity Providers to show at top of drop-down list // Default is 3, set to 0 to disable //$showNumOfPreviouslyUsedIdPs = 3; diff --git a/lib/default-embedded-wayf.php b/lib/default-embedded-wayf.php index 31c6e7f5bd795a8cee3a0667a2850be093124627..25bd0a1520102530556c42d3de507915552b7386 100644 --- a/lib/default-embedded-wayf.php +++ b/lib/default-embedded-wayf.php @@ -149,11 +149,11 @@ var wayf_return_url = "https://my-app.switch.ch/aai/index.php?page=show_welcome" // Whether or not use Select2 drop down // Attention: setting this to true, overrides $useImprovedDropDownList param +// For this to fully work, one must also add useSelect2 query Param to the +// embedded-wayf.js script loading URL. +// Page size is contrrolled by WAYF server directly. // var wayf_use_select2 = false; -// Config to change the number of IdP fetched when using Select2 dropdown -// var wayf_select2_page_size = 100; - // If true the improved drop-down-list will not display IdP logos that // have to be loaded from remote URLs. That way the web browser // does not have to make requests to third party hosts. @@ -336,7 +336,8 @@ var wayf_return_url = "https://my-app.switch.ch/aai/index.php?page=show_welcome" //--> - + +