Atlassian Connect Express:在connect-ace.atlassian.net上拒绝了凭据

时间:2017-10-01 12:03:14

标签: jira atlassian-connect

我正在评估atlassian-connect-express并刚刚创建了一个应用程序 样板与“atlassian-connect new”,然后通过ngrok部署 到我的Jira dev帐户。

这很好,但是当我尝试使用“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?

3 个答案:

答案 0 :(得分:1)

要检查的两件事:

1-检查certificate.json是否具有正确的值。主机网址应以 https:// 开头。密码是从here生成的api令牌。

{
    "hosts": {
        "https://<your atlassian site name>.atlassian.net": {
            "product": "jira",
            "username": "<jira user name>",
            "password": "<Token created from https://id.atlassian.com/manage/api-tokens>"
        }
    }
}

2- Enable development mode,在设置->应用->管理应用->设置。 (如果该应用未在市场中发布,则为必填项)

enter image description here

答案 1 :(得分:0)

您是否尝试过生成自己的云实例并在那里进行测试?如果还没有,请尝试创建一个here。成功注册后,在您的credentials.json中,更改&#34; connect-ace&#34;使用您的baseUrl / sitename并使用正确的凭据,它应该自动为您安装。

答案 2 :(得分:0)

此错误是atlas-connect的默认错误 Print error image

在atlasssian-connect.json中 替换此:

  "lifecycle": {
        "installed": "/installed"
    },

为此:

 "lifecycle": {
        "installed": "installed"
    },