<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged node</title>
<link>https://overflow.efficy.io/?qa=tag/node</link>
<description>Powered by Question2Answer</description>
<item>
<title>disableSecurity inefficient when called via node request</title>
<link>https://overflow.efficy.io/?qa=5944/disablesecurity-inefficient-when-called-via-node-request</link>
<description>&lt;p&gt;When some code called via a node request tries do disable the security,&lt;br&gt;
it's INEFFICIENT ! (Efficy 11.2)&lt;br&gt;
I implemented a minimum node file to demonstrate it, where I try to open an edit context on a record for which the user linked to the API key has no right:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function main() {
    Efficy.disableSecurity = true;
    try {
        try {
            var editHandle = Efficy.openEditContext(ntDocu, 828855);
            try {
                Response.setContent(&quot;I did open my record!&quot;);
                Response.setStatusCode(200); // HTTP_OK
            }
            finally {
                Efficy.closeContext(editHandle);
            }
        } catch (e) {
            Response.setStatusCode(400); // HTTP_BADREQUEST
            Response.setContent(&quot;Efficy.disableSecurity = &quot; + Efficy.disableSecurity + &quot; but...\n&quot; + e.message);
        }
    }
    finally {
        Efficy.disableSecurity = false;
    }
};
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And the response is : &lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=18103778925339841033&quot; alt=&quot;enter image description here&quot;&gt;&lt;br&gt;
This works as designed or did I miss something?&lt;br&gt;
This is the same of each Efficy property?&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5944/disablesecurity-inefficient-when-called-via-node-request</guid>
<pubDate>Wed, 03 Mar 2021 16:34:51 +0000</pubDate>
</item>
<item>
<title>Config when using json/node api in loadbalencer environnement</title>
<link>https://overflow.efficy.io/?qa=5717/config-when-using-json-node-api-loadbalencer-environnement</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;For a customer, we will need to use json/api node.&lt;br&gt;
Customer have actually an environnement with 2 &quot;frontend&quot; serveur behind a loadbalencer, and 1&quot;webservice&quot; serveur for soap call.&lt;/p&gt;

&lt;p&gt;Should we use the same infrastrucure and make json/node api call to the webservice serveur to avoid session problem ?&lt;br&gt;
Or is there something better to do ?&lt;/p&gt;

&lt;p&gt;regards,&lt;/p&gt;
</description>
<category>Efficy Installation/Settings</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5717/config-when-using-json-node-api-loadbalencer-environnement</guid>
<pubDate>Thu, 03 Dec 2020 08:48:55 +0000</pubDate>
</item>
<item>
<title>How to use Remote Api when sso is activated</title>
<link>https://overflow.efficy.io/?qa=4914/how-to-use-remote-api-when-sso-is-activated</link>
<description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I have made an listle custom using /json and /node api.&lt;br&gt;
Working good on the customer test server, but not in their prod server because sso is activated.&lt;/p&gt;

&lt;p&gt;(receive a 401 access denied, exactly like you click cancel on the pop windows when trying to connect with a browser)&lt;/p&gt;

&lt;p&gt;what do i need to do ?&lt;br&gt;
sending &quot;something&quot; in the header of the request for sso ?&lt;br&gt;
configuring &quot;something&quot; on the server to don't use sso for the remote api ?&lt;br&gt;
other ?&lt;/p&gt;

&lt;p&gt;Regards.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4914/how-to-use-remote-api-when-sso-is-activated</guid>
<pubDate>Mon, 14 Oct 2019 09:29:37 +0000</pubDate>
</item>
<item>
<title>Remote Api node is working but return an error in header</title>
<link>https://overflow.efficy.io/?qa=4901/remote-api-node-is-working-but-return-an-error-in-header</link>
<description>&lt;p&gt;Hi Everyone,&lt;/p&gt;

&lt;p&gt;I've made a short node api for a customer.&lt;br&gt;
When he use it, all is working good, but he receive this in the header of the response.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;X-Efficy-Status:
  - error
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;i've try locally on my computer with postman and i didn't have this.&lt;br&gt;
I've not yet try on customer test server with postman to see if we have this also&lt;/p&gt;

&lt;p&gt;Do you know in which case this is returned in the headers ?&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4901/remote-api-node-is-working-but-return-an-error-in-header</guid>
<pubDate>Fri, 11 Oct 2019 11:08:18 +0000</pubDate>
</item>
</channel>
</rss>