【问题标题】:Atlassian Connect Express: Credentials rejected at connect-ace.atlassian.netAtlassian Connect Express:connect-ace.atlassian.net 拒绝凭据
【发布时间】:2017-10-01 12:03:13
【问题描述】:

我正在评估 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?

【问题讨论】:

  • 你用了什么密码?密码应该是通过他们的 ID 平台创建的 API 令牌。

标签: jira atlassian-connect


【解决方案1】:

要检查两件事:

1 - 检查 credentials.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 在设置 -> 应用程序 -> 管理应用程序 -> 设置。 (如果应用未在市场上发布,则需要这样做)

【讨论】:

  • 我有同样的问题,但这并不能解决我的问题。我可以看到该令牌是正确的,因为它显示为在我生成它的页面中使用。我还检查了开发模式现在可能启用了 10 次。
【解决方案2】:

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

【讨论】:

    【解决方案3】:

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

    在 atlasssian-connect.json 中 替换这个:

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

    为此:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-26
      • 1970-01-01
      • 2023-04-05
      • 2021-03-23
      • 1970-01-01
      • 2011-08-24
      • 1970-01-01
      相关资源
      最近更新 更多