最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google apps script - AppsScript connection with HMRC not returning to AppsScript despite successful authorisation - Stack Overfl

programmeradmin1浏览0评论

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('

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论