最近搜索


没有最近搜索

Will Munn's Avatar

Will Munn

已加入2022年11月30日

·

最后活动2022年12月01日

关注

0

关注者

0

活动总数

3

投票

0

订阅

1

活动概览

的最新活动 Will Munn

Will Munn 进行了评论,

社区评论 Developer - Zendesk Apps Framework (ZAF)

If I set that I get

Uploading app... Uploaded
Deploying app... Failed
 ›   Error: Error: oauth parameter cannot be set to be secure.

查看评论 · 已于 2022年12月01日 发布 · Will Munn

0

关注者

0

投票

0

评论


Will Munn 进行了评论,

社区评论 Developer - Zendesk Apps Framework (ZAF)

Hi I'm having a lot of problems with this too. In my manifest I have:

```

{

 "parameters": [
    {
      "name": "token",
      "type": "oauth"
    }
  ],
  "oauth": {
    "client_id": "XXX",
    "client_secret": "XXX",
    "authorize_uri": "https://XXX/oauth2/authorize",
    "access_token_uri": "https://XXX/oauth2/token",
    "scope": "email profile offline_access"
  }

}

```

and my code does

```

client.request({
  url: 'https://xxx.com/some/endpoint',
  type: 'GET',
  secure: true,
  headers: {Authorization: 'Bearer {{setting.token}}'},
})

```

The app seems to authorise fine when I go through the process but I still get this proxy error.

One detail is that I've installed the app in a zendesk sandbox to test it. Is this expected to work?

查看评论 · 已于 2022年11月30日 发布 · Will Munn

0

关注者

0

投票

0

评论