<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XmlHttpRequest gets redirected to SAS logon manager in Developers</title>
    <link>https://communities.sas.com/t5/Developers/XmlHttpRequest-gets-redirected-to-SAS-logon-manager/m-p/398042#M5522</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;I did not know about this! Thanks, would have come in useful a couple of times this year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153445"&gt;@AMK&lt;/a&gt;&amp;nbsp;if you're looking to build any more AJAX-based apps, we manage&amp;nbsp;&lt;A href="https://github.com/Boemska/h54s" target="_self"&gt;a library for this&lt;/A&gt; that&amp;nbsp;handles SASLogon redirection &amp;amp; data transmission. You might find it interesting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 10:40:07 GMT</pubDate>
    <dc:creator>boemskats</dc:creator>
    <dc:date>2017-09-22T10:40:07Z</dc:date>
    <item>
      <title>XmlHttpRequest gets redirected to SAS logon manager</title>
      <link>https://communities.sas.com/t5/Developers/XmlHttpRequest-gets-redirected-to-SAS-logon-manager/m-p/397731#M5520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a webpage that contains a html form. Previously (in SAS 9.1)&amp;nbsp;when a user opened the webpage, a drop-down menu was populated with live data from SAS.&amp;nbsp;This was done&amp;nbsp;by calling a stored process&amp;nbsp;inline via a XmlHttpRequest and then populating the drop-down with the response from the stored process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked fine for many years, however since migrating from SAS 9.1 to SAS 9.4, the drop-down menu gets populated, but it seems to get populated with the html from the SAS Logon Manager page, so I think the stored process server is looking for credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am passing default credentials&amp;nbsp;(&amp;amp;_username=xxxxxxx&amp;amp;_password=yyyyyyyyy) that work fine if I just paste the URL into a web browser, but don't seem to work when I do the xmlhttprequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a snippet of the javascript I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;xmlhttp = new XMLHttpRequest();

stringToSend = new String();
stringToSend = "http://myserver.example.com:7980/SASStoredProcess/do?_program=/STP/get_data&amp;amp;_username=xxxxxxx&amp;amp;_password=yyyyyy";

xmlhttp.open("GET", stringToSend, true);
xmlhttp.send();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone seen this before? Can you suggest a way around it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adrian.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 10:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/XmlHttpRequest-gets-redirected-to-SAS-logon-manager/m-p/397731#M5520</guid>
      <dc:creator>AMK</dc:creator>
      <dc:date>2017-09-21T10:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: XmlHttpRequest gets redirected to SAS logon manager</title>
      <link>https://communities.sas.com/t5/Developers/XmlHttpRequest-gets-redirected-to-SAS-logon-manager/m-p/397762#M5521</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153445"&gt;@AMK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basic HTTP authentication for a SAS® Stored Process might not work after you migrate to SAS® 9.4. You can avoid this problem by using the following workaround:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;On the Plug-ins tab in SAS® Management Console, select Application Management ► Configuration Manager ► SAS Application Infrastructure ► Stored Process Web App 9.4 ► Properties. On the Advanced tab in the properties dialog box, add the property name and value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;For Property Name, enter App.AcceptDirectCredentials.&lt;/LI&gt;
&lt;LI&gt;For Property Value, enter true.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Save the changes.&lt;BR /&gt;Restart your application web server to activate the change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/52/961.html" target="_self"&gt;http://support.sas.com/kb/52/961.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 13:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/XmlHttpRequest-gets-redirected-to-SAS-logon-manager/m-p/397762#M5521</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-09-21T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: XmlHttpRequest gets redirected to SAS logon manager</title>
      <link>https://communities.sas.com/t5/Developers/XmlHttpRequest-gets-redirected-to-SAS-logon-manager/m-p/398042#M5522</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;I did not know about this! Thanks, would have come in useful a couple of times this year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153445"&gt;@AMK&lt;/a&gt;&amp;nbsp;if you're looking to build any more AJAX-based apps, we manage&amp;nbsp;&lt;A href="https://github.com/Boemska/h54s" target="_self"&gt;a library for this&lt;/A&gt; that&amp;nbsp;handles SASLogon redirection &amp;amp; data transmission. You might find it interesting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 10:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/XmlHttpRequest-gets-redirected-to-SAS-logon-manager/m-p/398042#M5522</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2017-09-22T10:40:07Z</dc:date>
    </item>
  </channel>
</rss>

