admin管理员组文章数量:1312992
I am testing a connection to HMRC API (the UK tax department) and I am not getting a response back. My code generates a URL for me to follow, I then manually enter test user data provided by HMRC for authorization. The manual part is returning the correct redirect URI and says it is successful. But my AppsScript code is saying it isn't authorised.
I have checked the redirect URI on HMRC dev console agrees to that in my script. Client secret and IDs all ok and tested. My AppsScript isn't executing doGet(e) after authorisation. What am I missing? Deployed as web app with access to Anyone. Code below (ugly as I wanted to get this sorted and full of logs which aren't helping):
/**
* OAuth2 Service Setup for HMRC API
*/
function getOAuthService() {
Logger.log('
本文标签:
版权声明:本文标题:google apps script - AppsScript connection with HMRC not returning to AppsScript despite successful authorisation - Stack Overfl 内容由网友自发贡献,该文观点仅代表作者本人,
转载请联系作者并注明出处:http://www.betaflare.com/web/1741902263a2403938.html,
本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论