admin管理员组文章数量:1022982
I have a script set up to generate a spreadsheet we use when a new file is created in a particular folder. It uses the importdata() function in google sheets.
Recently google sheets updated their permissions (I was wondering when this was going to happen) to disallow the importdata() function until it's authorized (the importdata function we use has URL parameters). The problem is that the initial use of the spreadsheet is frequently via the mobile app and the authorization button doesn't show for the mobile user to authorize the app.
To be clear:
- this button that is displayed on the desktop only and my issue is that the first use is often via mobile.
- It is authorizing the Spreadsheet to send/receive data and NOT the underlying apps script. Even if the underlying apps script has the ability to send/receive, the spreadsheet will not allow the importdata() function to work (particularly if it has URL parameters)
The URL that this authorization button posts to is: /{spreadsheetID}/externaldata/allowexternalurlaccess?token={token}&includes_info_params=true&usp=drive_fs&cros_files=false
I have tried generating this URL in apps script for the user to click on but it needs to be a post and not a get request. A get request to the URL returns a 404 error.
This issue should be easily duplicated by opening a new google sheet and adding the importdata() function to a cell with a URL with URL parameters.
I have a script set up to generate a spreadsheet we use when a new file is created in a particular folder. It uses the importdata() function in google sheets.
Recently google sheets updated their permissions (I was wondering when this was going to happen) to disallow the importdata() function until it's authorized (the importdata function we use has URL parameters). The problem is that the initial use of the spreadsheet is frequently via the mobile app and the authorization button doesn't show for the mobile user to authorize the app.
To be clear:
- this button that is displayed on the desktop only and my issue is that the first use is often via mobile.
- It is authorizing the Spreadsheet to send/receive data and NOT the underlying apps script. Even if the underlying apps script has the ability to send/receive, the spreadsheet will not allow the importdata() function to work (particularly if it has URL parameters)
The URL that this authorization button posts to is: /{spreadsheetID}/externaldata/allowexternalurlaccess?token={token}&includes_info_params=true&usp=drive_fs&cros_files=false
I have tried generating this URL in apps script for the user to click on but it needs to be a post and not a get request. A get request to the URL returns a 404 error.
This issue should be easily duplicated by opening a new google sheet and adding the importdata() function to a cell with a URL with URL parameters.
版权声明:本文标题:security - Is there a way to generate the authorization url for the importdata function to run? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745557781a2155979.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论