Eu conseguir acessa a URL externa e publica em um HTML fora do fluig (para autentica usei um plugin oAuth 1.0).
Na função a baixo listo os arquivos GED e URL externa.
JS auxiliares que uso para acesso
<script type="text/javascript" src="http://dominiodoseufluig:porta/portal/resources/js/api_pt_BR.js?v=1.6.5-190326"></script>
<script type="text/javascript" src="http://dominiodoseufluig:porta/resources/js/wcm_global_pt_BR.js?v=1.6.5-190326"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/core.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/sha1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-base64.js"></script>
//função criar lista das pasta / arquivos com a URL para abrir
var openFolder = function(listaPai,idFolder){
var buffString = '';
var c = $("#idFold_"+idFolder);
if (c.children(":first").hasClass("glyphicon-folder-close") ){ //c.hasClass("glyphicon-folder-close")
c.children(":first").removeClass("glyphicon-folder-close")
c.children(":first").addClass("glyphicon-folder-open")
if($("#idFolder_"+idFolder).length <= 0 ){
obj = getListDocument(idFolder);
buffString = '<ul id="idFolder_'+idFolder+'" class="list-group">';
if(obj != null){
for(i=0; i< obj.length;i++){
if(obj[i].type == "1"){
buffString += '<li class="list-group-item"id="idFold_'+obj[i].id+'" ><span class="glyphicon glyphicon-folder-close"></span><a href="#" onclick="openFolder(this,'+obj[i].id+');">'+obj[i].description+'<span class="sr-only"></span></a></li>';
}else if(obj[i].type == "2"){
buffString += '<li class="list-group-item"><span class="glyphicon glyphicon-file"></span><a target="_blank" href="'+obj[i].fileURL+'">'+obj[i].description+'<span class="sr-only"></span></a></li>';
}
}
}
}else{
$("#idFolder_"+idFolder).show();
}
buffString+='</ul>'
c.html(c.html()+buffString)
}else{
c.children(":first").removeClass("glyphicon-folder-open")
c.children(":first").addClass("glyphicon-folder-close")
$("#idFolder_"+idFolder).hide();
}
};
//função que lista arquivo de um pasta do GED
var getListDocument = function(idFolder){
var listDocuments = ''
var request_data = {
url: WCMAPI.getServerURL()+"/api/public/ecm/document/listDocument/"+idFolder+"?limit=100",
method: 'GET',
data: {}
};
$.ajax({
async: false,
contentType: "application/json",
url: request_data.url,
type: request_data.method,
headers: oauth.toHeader(oauth.authorize(request_data, token)),
})
.done(function(data) {
console.log(data);
listDocuments = data.content
});
return listDocuments;
}
//Exemplo de objeto para autenticação
let oauth_consumer_key="key_consumer_criado_no_fluig";
let oauth_secret_key_consumer="secret_key_consumer_criado_no_fluig";
let oauth_signature_method="HMAC-SHA1";
let token = {
key: 'dfer234-41d5-4c3c-a7aa-e6274c2b0ded',
secret: '7aersdf6-c0fd-4504-b4f7-13bd72bafd38d3821a10-491b-4a92-b179-2279c4a8fbab'
};//gerado no fluig
let oauth = OAuth({consumer: {key: oauth_consumer_key,secret: oauth_secret_key_consumer},
signature_method: 'HMAC-SHA1',
hash_function:function(base_string, key) {
return CryptoJS.HmacSHA1(base_string, key).toString(CryptoJS.enc.Base64)
},
});