我正在评估 atlassian-connect-express 并刚刚使用“atlassian-connect new”创建了一个应用程序样板,然后通过 ngrok 将其部署到我的 Jira 开发帐户。
这很好用,但是当我尝试将文件“credentials.json”与我的帐户数据一起使用时,插件以错误消息开头:
无法注册主机 https://michael%40...:[我的密码]@connect-ace.atlassian.net (401) 插件
未注册;未检测到兼容主机
当我访问 url connect-ace.atlassian.net 时,我收到了类似的消息
这是我的 atlassian-connect.json
{
"key": "my-add-on",
"name": "Ping Pong",
"description": "My very first add-on",
"vendor": {
"name": "Angry Nerds",
"url": "https://www.atlassian.com/angrynerds"
},
"baseUrl": "https://xxxxxxx.ngrok.io",
"links": {
"self": "https://xxxxxxxx.ngrok.io/atlassian-connect.json",
"homepage": "https://xxxxxxx.ngrok.io/atlassian-connect.json"
},
"authentication": {
"type": "jwt"
},
"lifecycle": {
"installed": "/installed"
},
"scopes": [
"READ"
],
"modules": {
"generalPages": [
{
"key": "hello-world-page-jira",
"location": "system.top.navigation.bar",
"name": {
"value": "Hello World"
},
"url": "/hello-world",
"conditions": [{
"condition": "user_is_logged_in"
}]
},
{
"key": "hello-world-page-confluence",
"location": "system.header/left",
"name": {
"value": "Hello World"
},
"url": "/hello-world",
"conditions": [{
"condition": "user_is_logged_in"
}]
}
]
}
}
和我的 credatials.json
{
"hosts": {
"connect-ace.atlassian.net": {
"product": "jira",
"username": "michael@---",
"password": "---password---"
}
}
}
如何让我的开发帐户与 connect-ace 一起使用?