<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Consuming/access to documents on GoFAST fro  Intranet]]></title><description><![CDATA[<p dir="auto">Original question: A topic that is also interesting for us but not urgent was something mentioned during a training: <strong>Making links to files available via API to be referred in another website, thus avoiding download of to be published files just to be manually uploaded elsewhere</strong>, especially with the need to refresh the published file when a new version was generated. The CEO-Vision people said this could be done easily just with the configuration of the specific space and technical user for that. Can you tell us some more?</p>
<p dir="auto">There was some exchange by email, and I want to summarize it here as I have been asked to do so, for discussion of different option.<br />
So I will follow now first with our findings so far, and the feedback we have received so far</p>
]]></description><link>https://community.ceo-vision.com/topic/508/consuming-access-to-documents-on-gofast-fro-intranet</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 19:37:23 GMT</lastBuildDate><atom:link href="https://community.ceo-vision.com/topic/508.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 May 2021 16:32:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Consuming/access to documents on GoFAST fro  Intranet on Thu, 20 May 2021 14:56:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/aclassen" aria-label="Profile: aclassen">@<bdi>aclassen</bdi></a></p>
<p dir="auto">Thank you for the summary of the subject, here are the answers to your questions :</p>
<ul>
<li>
<p dir="auto">Is a combination of those requests enough for a read-only access?<br />
=&gt; Yes absolutly, these 2 requests will allows you to download the file with the proper metadata</p>
</li>
<li>
<p dir="auto">By using access from the Intranet for example with a curl library or the like, do I understand well that we could make the call going just between servers?<br />
=&gt; Yes, there is a simple exemple, assuming that you already retrieved the file name and knows the node ID :</p>
</li>
</ul>
<pre><code>$ch = curl_init();

$path = "/var/www/d7/sites/default/files/api/"; //An apache writable path on this server
$title = "Copies écran GoFAST.pptx"; //Retrieved using GET : api/node/node

//Set URLs and inform cURL this is a file transfer
curl_setopt($ch, CURLOPT_URL, "https://gofast.ceo-vision.com/api/node/content?nid=19840");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);

//Set mandatory headers as described in the documentation
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  "Content-Type: application/octet-stream",
  "Content-Disposition: attachment",
  "Authorization: XXXXXX" //Your user Authorization as described in the documentation
));

//Retrieve the file
$output = curl_exec($ch);

//Write the file in the server
file_put_contents($path . $title, $output);

curl_close($ch);
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1621522095583-37e76174-94e2-489e-91f0-5f4f7c6eeec1-image.png" alt="37e76174-94e2-489e-91f0-5f4f7c6eeec1-image.png" class=" img-fluid img-markdown" /></p>
<ul>
<li>
<p dir="auto">And we could have for example 2 users with different access rights – one for Extanet shared documents, one for the internal Organisations? Or does that not make sense?<br />
=&gt; Yes, multiple users with different Authorization can makes sense for security reasons, even if in practical, the front end users will never get the Authorization informations because all the work is done server side</p>
</li>
<li>
<p dir="auto">I remember that you also mentioned that somehow the approach was simpler when restricting access to _Public spaces. Is that the case?<br />
=&gt; I'm not sure I remember but it might be the fact that a non extranet user in GoFAST have access to all public spaces</p>
</li>
<li>
<p dir="auto">I regularly get the response message     "This Content-Type is not implemented by the server" (as JSON) but the document downloads OK. Is that as expected?<br />
=&gt; Please set the headers as shown in the exemple</p>
</li>
</ul>
<p dir="auto">Don't hesitate to come back to me if you have further questions !</p>
]]></description><link>https://community.ceo-vision.com/post/1489</link><guid isPermaLink="true">https://community.ceo-vision.com/post/1489</guid><dc:creator><![CDATA[jlemangarin]]></dc:creator><pubDate>Thu, 20 May 2021 14:56:21 GMT</pubDate></item><item><title><![CDATA[Reply to Consuming/access to documents on GoFAST fro  Intranet on Wed, 19 May 2021 16:51:02 GMT]]></title><description><![CDATA[<p dir="auto">And now come the REAL questions - we found we likely need to use the API to implement 2.</p>
<p dir="auto"><strong>My understanding – to implement 2. we need to use the API, and  I’ve experimented a bit (really a tiny bit) with the API</strong></p>
<p dir="auto">To get a node as an attachment, you call https://[server]/api/node/content?nid=[nodeid] with a request header like this<br />
<img src="/assets/uploads/files/1621443032936-mine.png" alt="mine.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Where Authorization is the Base-64-encoded string username:password for a user with LOCAL authentication to GoFAST and access rights to the space from where you want to get data. I tried it for a user api-pub that I created who is internal and mainly has access to PUBLIC</p>
<p dir="auto">One could use, I think, https://[server]/api/node/node?nid=1125 to get the name of the document (and the type) – there only with Authorization in the request header</p>
<p dir="auto">Questions:</p>
<ol>
<li>
<pre><code>  Is a combination of those requests enough for a read-only access?
</code></pre>
</li>
<li>
<pre><code>  By using access from the Intranet for example with a curl library or the like, do I understand well that we could make the call going just between servers?
</code></pre>
</li>
<li>
<pre><code>  And we could have for example 2 users with different access rights – one for Extanet shared documents, one for the internal Organisations? Or does that not make sense?
</code></pre>
</li>
<li>
<pre><code>  I remember that you also mentioned that somehow the approach was simpler when restricting access to _Public spaces. Is that the case?
</code></pre>
</li>
<li>
<pre><code>  I regularly get the response message     "This Content-Type is not implemented by the server" (as JSON) but the document downloads OK. Is that as expected?
</code></pre>
</li>
<li>
<pre><code>  Indeed if you could share examples or an example, that would be great
</code></pre>
</li>
</ol>
]]></description><link>https://community.ceo-vision.com/post/1481</link><guid isPermaLink="true">https://community.ceo-vision.com/post/1481</guid><dc:creator><![CDATA[aclassen]]></dc:creator><pubDate>Wed, 19 May 2021 16:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to Consuming/access to documents on GoFAST fro  Intranet on Wed, 19 May 2021 16:44:39 GMT]]></title><description><![CDATA[<p dir="auto">So this was our conclusion:</p>
<p dir="auto">So, 1. – Just using Webdav for publishing – not recommended for security reasons, well understood</p>
<ol start="2">
<li>
<p dir="auto">and 3. Either link to a file at a node on Documenta or copying said file</p>
</li>
<li>
<p dir="auto">Seems the most feasible. We only want to read from GoFAST, i.e. access the current version, not update (at least not now)</p>
</li>
</ol>
]]></description><link>https://community.ceo-vision.com/post/1480</link><guid isPermaLink="true">https://community.ceo-vision.com/post/1480</guid><dc:creator><![CDATA[aclassen]]></dc:creator><pubDate>Wed, 19 May 2021 16:44:39 GMT</pubDate></item><item><title><![CDATA[Reply to Consuming/access to documents on GoFAST fro  Intranet on Wed, 19 May 2021 16:43:28 GMT]]></title><description><![CDATA[<p dir="auto">Some answers<br />
GoFAST pushes all or a subset of Files within a subspace to somewhere else – Do I understand well that this is just an export to the file system somewhere on a remote server?<br />
<strong>Yes</strong><br />
Is there a synchronisation, i.e. would that be a periodic push?<br />
<strong>Yes, it may be a periodic push.</strong><br />
If yes, would new versions overwrite the old version, i.e. would we see updates?<br />
<strong>Yes</strong><br />
They could be accessed from a website using some get-file-from-folder mechanism, or imported into another system?<br />
How are the files then named?<br />
Would there be a folder structure or one flat folder?</p>
<p dir="auto"><strong>This option would be basically a periodic copy from a GoFAST space (with the folder structure) to the intranet. We won't recommend this option as it could lead to potential security issues, out of bounds of our security support.</strong></p>
<p dir="auto"><strong>The naming conventions and the overwrite policies has to be defined as it's not a standard mechanism.</strong></p>
<ol start="2">
<li>
<p dir="auto">So this is basically an API  request to GoFAST from our Intranet, I assume, without a copy. Is the request then client based (does the client access the GoFAST server?)<br />
<strong>Not necessary, Intranet server can make a call to GoFAST platform</strong></p>
</li>
<li>
<p dir="auto">And that is the same as 2 just with a copy being fetched. Would that work with updating files as well? What would actually be done?<br />
<strong>You can find more information in our technical documentation:<br />
<a href="https://gofast-docs.readthedocs.io/en/latest/docs-gofast-development/api-rest.html#action-preview" rel="nofollow ugc">https://gofast-docs.readthedocs.io/en/latest/docs-gofast-development/api-rest.html#action-preview</a></strong></p>
</li>
</ol>
<p dir="auto">I would be interested to learn a bit more about what is actually going on in 1) 2) or 3), and how it would appear for users, or to see examples, if you have that?<br />
<strong>I can ask some of our customers for examples.</strong></p>
]]></description><link>https://community.ceo-vision.com/post/1479</link><guid isPermaLink="true">https://community.ceo-vision.com/post/1479</guid><dc:creator><![CDATA[aclassen]]></dc:creator><pubDate>Wed, 19 May 2021 16:43:28 GMT</pubDate></item><item><title><![CDATA[Reply to Consuming/access to documents on GoFAST fro  Intranet on Wed, 19 May 2021 16:40:13 GMT]]></title><description><![CDATA[<p dir="auto">First answer: you can explore 3 different solutions :</p>
<p dir="auto"><strong>1. GoFAST platform send the Publication files from Public spaces/sub-spaces to Intranet/web-site (Ceo-Vision can make technical configuration)</strong></p>
<ul>
<li>Do I understand well that this is just an export to the filesystem somewhere on a remote server?</li>
<li>How are the files then named?</li>
<li>Would there be a folder structure or one flat folder?</li>
<li>Is there a synchronisation, i.e. would that be a periodic push? If yes, would new versions overwrite the old version, i.e. would we see updates?</li>
<li>They could be accessed from a website using some get-file-from-folder mechanism, or imported into another system?</li>
</ul>
<p dir="auto"><strong>2. Intranet/web-site makes a request to GoFAST platform (public space/sub-space) each time your users need to visualize these files. Publication files on web-site/Intranet (files are not stored, no copy in Intranet/web-site;  Customer can do it if you have the skills or our team can do the configurations )</strong></p>
<ul>
<li>So this is basically an API  request to GoFAST from our Intranet, I assume, without a copy. Is the request then client based (does the client access the GoFAST server?)</li>
</ul>
<p dir="auto"><strong>3. Intranet/web-site is looking for Publication files in GoFAST Public space/sub-space and the users see the copy of files in web-site/Intranet (customer can do it if you have the skills or our team can do the configurations)</strong></p>
<ul>
<li>And that is the same as 2 just with a copy being fetched. Would that work with updating files as well? What would actually be done?</li>
</ul>
<p dir="auto"><strong>4. If you want to publish files in your web-site/Intranet from different collaborative spaces of GoFAST platform, it will be more complicated...</strong>.. NO. We do not want that...</p>
]]></description><link>https://community.ceo-vision.com/post/1478</link><guid isPermaLink="true">https://community.ceo-vision.com/post/1478</guid><dc:creator><![CDATA[aclassen]]></dc:creator><pubDate>Wed, 19 May 2021 16:40:13 GMT</pubDate></item></channel></rss>