<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Resending in case included image was too big</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Woolf, Carl <Carl_Woolf@hms.harvard.edu><br>
<b>Date: </b>Friday, March 11, 2022 at 3:05 PM<br>
<b>To: </b>users@shibboleth.net <users@shibboleth.net><br>
<b>Subject: </b>newbie on EDS, form shows empty select list</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">Greetings, I set up a page in my app to use Embedded Discovery Service, with guidance from
<a href="https://shibboleth.atlassian.net/wiki/spaces/EDS10/overview?homepageId=2383446015">
https://shibboleth.atlassian.net/wiki/spaces/EDS10/overview?homepageId=2383446015</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">My page happily displays the boilerplate red-bordered form for selecting an organization.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">But the dropdown is empty. For detail, below is the modified idpselect_config.js that I am using. I’ve been trying minor variations of the values I specified, so far to no avail. (For (more) sanity, I defined
my ‘magic strings’ in this file only once.) Any clues why my dropdown is empty?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks, - Carl</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal" style="background:white"><i><span style="font-family:"Courier New";color:#8C8C8C">// see https://shibboleth.atlassian.net/wiki/spaces/EDS10/overview?homepageId=2383446015 ,<br>
// especially 'Configuration'<br>
<br>
<br>
/** @class </span></i><i><span style="font-family:"Courier New";color:#3D3D3D">IdP
</span></i><i><span style="font-family:"Courier New";color:#8C8C8C">Selector UI */<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">function </span>
<span style="font-family:"Courier New";color:black">IdPSelectUIParms</span><span style="font-family:"Courier New";color:#080808">() {<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">DEVS_LOCAL_HOST</span><span style="font-family:"Courier New";color:#080808">=</span><span style="font-family:"Courier New";color:#067D17">"https://localhost:4443/idp/Shibboleth.sso/DS?SAMLDS=1"</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">DEVS_LOCAL_HOST_RE</span><span style="font-family:"Courier New";color:#080808">=</span><span style="font-family:"Courier New";color:#067D17">"^https:</span><span style="font-family:"Courier New";color:#0037A6">\/\/</span><span style="font-family:"Courier New";color:#067D17">localhost:4443</span><span style="font-family:"Courier New";color:#0037A6">\/</span><span style="font-family:"Courier New";color:#067D17">idp</span><span style="font-family:"Courier New";color:#0037A6">\/</span><span style="font-family:"Courier New";color:#067D17">Shibboleth</span><span style="font-family:"Courier New";color:#0037A6">\.</span><span style="font-family:"Courier New";color:#067D17">sso.*$"</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><i><span style="font-family:"Courier New";color:#8C8C8C">//<br>
// Adjust the following to fit into your local configuration<br>
//<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">alwaysShow
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">true</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// If true, this will show results as soon as you start typing<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">dataSource
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#067D17">'/Shibboleth.sso/DiscoFeed'</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Where to get the data from<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">defaultLanguage
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#067D17">'en'</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Language to use if the browser local doesnt have a bundle<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">defaultLogo
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#067D17">'blank.gif'</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Replace with your own logo<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">defaultLogoWidth
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">1</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">defaultLogoHeight
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">1</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">defaultReturn
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">DEVS_LOCAL_HOST</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// If non null, then the default place to send users who are not<br>
// Approaching via the Discovery Protocol for example<br>
//this.defaultReturn = "https://example.org/Shibboleth.sso/DS?SAMLDS=1&target=https://example.org/secure";<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">defaultReturnIDParam
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#067D17">"entityID"</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">returnWhiteList
</span><span style="font-family:"Courier New";color:#080808">= [</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">DEVS_LOCAL_HOST_RE</span><span style="font-family:"Courier New";color:#080808">];<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">helpURL
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#067D17">'https://wiki.shibboleth.net/confluence/display/SHIB2/DSRoadmap'</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">ie6Hack
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">null</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// An array of structures to disable when drawing the pull down (needed to<br>
// handle the ie6 z axis problem<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">insertAtDiv
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#067D17">'idpSelect'</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// The div where we will insert the data<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">maxResults
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">10</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// How many results to show at once or the number at which to<br>
// start showing if alwaysShow is false<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">myEntityID
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">DEVS_LOCAL_HOST</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// If non null then this string must match the string provided in the DS parms<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">preferredIdP
</span><span style="font-family:"Courier New";color:#080808">= [</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">DEVS_LOCAL_HOST</span><span style="font-family:"Courier New";color:#080808">];
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Array of entityIds to always show<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">hiddenIdPs
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">null</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Array of entityIds to delete<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">ignoreKeywords
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">false</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Do we ignore the <mdui:Keywords/> when looking for candidates<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">showListFirst
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">true</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Do we start with a list of IdPs or just the dropdown<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">samlIdPCookieTTL
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">730</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// in days<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">setFocusTextBox
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">true</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Set to false to supress focus<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">testGUI
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">false</span><span style="font-family:"Courier New";color:#080808">;<br>
<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">autoFollowCookie
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#0033B3">null</span><span style="font-family:"Courier New";color:#080808">;
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// If you want auto-dispatch, set this to the cookie name to use<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">autoFollowCookieTTLs
</span><span style="font-family:"Courier New";color:#080808">= [</span><span style="font-family:"Courier New";color:#1750EB">1</span><span style="font-family:"Courier New";color:#080808">,
</span><span style="font-family:"Courier New";color:#1750EB">60</span><span style="font-family:"Courier New";color:#080808">,
</span><span style="font-family:"Courier New";color:#1750EB">270</span><span style="font-family:"Courier New";color:#080808">];
</span><i><span style="font-family:"Courier New";color:#8C8C8C">// Cookie life (in days). Changing this requires changes to idp_select_languages<br>
<br>
//<br>
// Language support.<br>
//<br>
// The minified source provides "en", "de", "pt-br" and "jp".<br>
//<br>
// Override any of these below, or provide your own language<br>
//<br>
//this.langBundles = {<br>
//'en': {<br>
// 'fatal.divMissing': '<div> specified as "insertAtDiv" could not be located in the HTML',<br>
// 'fatal.noXMLHttpRequest': 'Browser does not support XMLHttpRequest, unable to load IdP selection data',<br>
// 'fatal.wrongProtocol' : 'Policy supplied to DS was not "urn:oasis:names:tc:SAML:profiles:SSO:idpdiscovery-protocol:single"',<br>
// 'fatal.wrongEntityId' : 'entityId supplied by SP did not match configuration',<br>
// 'fatal.noData' : 'Metadata download returned no data',<br>
// 'fatal.loadFailed': 'Failed to download metadata from ',<br>
// 'fatal.noparms' : 'No parameters to discovery session and no defaultReturn parameter configured',<br>
// 'fatal.noReturnURL' : "No URL return parameter provided",<br>
// 'fatal.badProtocol' : "Return request must start with https:// or http://",<br>
// 'idpPreferred.label': 'Use a suggested selection:',<br>
// 'idpEntry.label': 'Or enter your organization\'s name',<br>
// 'idpEntry.NoPreferred.label': 'Enter your organization\'s name',<br>
// 'idpList.label': 'Or select your organization from the list below',<br>
// 'idpList.NoPreferred.label': 'Select your organization from the list below',<br>
// 'idpList.defaultOptionLabel': 'Please select your organization...',<br>
// 'idpList.showList' : 'Allow me to pick from a list',<br>
// 'idpList.showSearch' : 'Allow me to specify the site',<br>
// 'submitButton.label': 'Continue',<br>
// 'helpText': 'Help',<br>
// 'defaultLogoAlt' : 'DefaultLogo'<br>
//}<br>
//};<br>
<br>
//<br>
// The following should not be changed without changes to the css. Consider them as mandatory defaults<br>
//<br>
</span></i><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">maxPreferredIdPs
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">3</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">maxIdPCharsButton
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">33</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">maxIdPCharsDropDown
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">58</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">maxIdPCharsAltTxt
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">60</span><span style="font-family:"Courier New";color:#080808">;<br>
<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">minWidth
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">20</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">minHeight
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">20</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">maxWidth
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">115</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">maxHeight
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#1750EB">69</span><span style="font-family:"Courier New";color:#080808">;<br>
</span><span style="font-family:"Courier New";color:#0033B3">this</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#871094">bestRatio
</span><span style="font-family:"Courier New";color:#080808">= </span><span style="font-family:"Courier New";color:#830091">Math</span><span style="font-family:"Courier New";color:#080808">.</span><span style="font-family:"Courier New";color:#7A7A43">log</span><span style="font-family:"Courier New";color:#080808">(</span><span style="font-family:"Courier New";color:#1750EB">80
</span><span style="font-family:"Courier New";color:#080808">/ </span><span style="font-family:"Courier New";color:#1750EB">60</span><span style="font-family:"Courier New";color:#080808">);<br>
}</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
</div>
</body>
</html>