[英]Atlassian Connect Express: Credentials rejected at connect-ace.atlassian.net
我正在評估 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"
}]
}
]
}
}
和我的憑證.json
{
"hosts": {
"connect-ace.atlassian.net": {
"product": "jira",
"username": "michael@---",
"password": "---password---"
}
}
}
如何讓我的開發帳戶與 connect-ace 一起使用?
要檢查的兩件事:
1 - 檢查credentials.json 是否具有正確的值。 主機 url 應以https://開頭。 密碼是從這里生成的 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- 在設置 -> 應用程序 -> 管理應用程序 -> 設置中啟用開發模式。 (如果應用程序未在市場上發布,則這是必需的)
您是否嘗試過生成自己的雲實例並在那里對其進行測試? 如果還沒有,請嘗試在此處創建一個。 成功注冊后,在您的憑據.json 中,使用您的 baseUrl/站點名稱和正確的憑據更改“connect-ace”,它應該會自動為您安裝。
此錯誤是 atlas-connect打印錯誤圖像的默認值
在 atlasssian-connect.json 中替換這個:
"lifecycle": {
"installed": "/installed"
},
為此:
"lifecycle": {
"installed": "installed"
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.