Skip to content

Commit

Permalink
It works now
Browse files Browse the repository at this point in the history
  • Loading branch information
bwieger-atlassian-com committed Feb 15, 2025
1 parent e592f09 commit b8d278d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/atlclients/clientManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,14 @@ export class ClientManager implements Disposable {
};
} else {
result = {
repositories: isBasicAuthInfo(info)
? new ServerRepositoriesApi(this.createHTTPClient(site, info))
: undefined!,
pullrequests: isBasicAuthInfo(info)
? new ServerPullRequestApi(this.createHTTPClient(site, info))
: undefined!,
repositories:
isBasicAuthInfo(info) || isPATAuthInfo(info) // bwieger - this is the missing piece
? new ServerRepositoriesApi(this.createHTTPClient(site, info))
: undefined!,
pullrequests:
isBasicAuthInfo(info) || isPATAuthInfo(info)
? new ServerPullRequestApi(this.createHTTPClient(site, info))
: undefined!,
issues: undefined,
pipelines: undefined,
};
Expand Down
1 change: 1 addition & 0 deletions src/jira/jira-client/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function basicJiraTransportFactory(site: DetailedSiteInfo): TransportFact
}

export const jiraTokenAuthProvider = (token: string): AuthorizationProvider => {
// bwieger - copy this? s
return (method: string, url: string) => {
return Promise.resolve(`Bearer ${token}`);
};
Expand Down

0 comments on commit b8d278d

Please sign in to comment.