Skip to content

Commit df08fc8

Browse files
committed
fix: Add authenticationType condition for Jira Cloud
1 parent 804ee00 commit df08fc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/jiraClient.ts

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export class JiraClient {
7272
requestHeaders['Authorization'] = 'Basic ' + base64Encode(`${account.username}:${account.password}`)
7373
} else if (account.authenticationType === EAuthenticationTypes.BEARER_TOKEN) {
7474
requestHeaders['Authorization'] = `Bearer ${account.bareToken}`
75+
} else if (account.authenticationType === EAuthenticationTypes.CLOUD) {
76+
requestHeaders['Authorization'] = 'Basic ' + base64Encode(`${account.username}:${account.password}`)
7577
}
7678
return requestHeaders
7779
}

0 commit comments

Comments
 (0)