I set up a simple "Hello World" app that reads the url query, and set the deployment as follows:
While this is using my workdspace account, the code doesn't access any resources yet. But When i access the app on the URL in an incognito window I get a prompt to log into google. When I access it on a session with a different account (not from my work organization) logged in, I get this:
What could be wrong? The app's URL is: https://script.google.com/macros/s/AKfycby_FgMJNYgfoDW6eA1X7gWVDd1dFOR6dAQN6AV49QM0tcXseGtVlXNZC_Dc693dqBlK/exec?4567 (i tried adding the organization domain (/a/domain.com) but the only difference it did was that in incognito mode it added the domain suffix to the username field).
(Edit) code.gs content is:
function include(filename){
return HtmlService.createHtmlOutputFromFile(filename)
.getContent();
};
function doGet(e) {
asset_id = e.queryString;
webpagecontent = "start text " asset_id " end text.";
return HtmlService
.createTemplateFromFile('test.html')
.evaluate();
}
CodePudding user response:
OP resolved the issue by creating a new script, put it in a public-accessible folder, and copied everything into it (including the deployment settings),then opened the link in incognito to test