From 95071bd21c8e60ae3d74b8ef0dfed5d3e8437ac5 Mon Sep 17 00:00:00 2001 From: movesax Date: Wed, 27 Sep 2017 10:37:53 -0400 Subject: [PATCH] FIX-exp-4731 added auth.restrictedToken to getURL. --- src/API.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API.js b/src/API.js index 4d13673..8281641 100644 --- a/src/API.js +++ b/src/API.js @@ -416,9 +416,9 @@ class Content extends CommonResource { getUrl () { const auth = this._sdk.authenticator.getAuthSync(); if (this.subtype === 'scala:content:file') { - return this._sdk.options.host + '/api/delivery' + Content._encodePath(this.document.path); + return this._sdk.options.host + '/api/delivery' + Content._encodePath(this.document.path) + '?_rt=' + auth.restrictedToken; } else if (this.subtype === 'scala:content:app') { - return this._sdk.options.host + '/api/delivery' + Content._encodePath(this.document.path) + '/index.html'; + return this._sdk.options.host + '/api/delivery' + Content._encodePath(this.document.path) + '/index.html?_rt=' + auth.restrictedToken; } else if (this.subtype === 'scala:content:url') { return this.document.url; }