emdash icon indicating copy to clipboard operation
emdash copied to clipboard

feat(jira): Support bearer auth tokens for scoped Jira access

Open arnestrickmann opened this issue 9 months ago • 1 comments

Summary

Support bearer auth tokens (e.g. OAuth 2.0 scoped tokens) as an alternative to the current Basic Auth (email + API token) approach for Jira integration. This would allow users to use scoped tokens with least-privilege access instead of general-purpose API tokens.

Current Behavior

Jira auth uses HTTP Basic Auth with an email + API token pair (Authorization: Basic {base64(email:token)}), which is the standard approach for Jira Cloud's REST API. The token is stored in the OS keychain via keytar.

Desired Behavior

Allow users to authenticate with a bearer token (Authorization: Bearer {token}) in addition to the existing Basic Auth flow. This enables:

  • Scoped tokens with fine-grained permissions (least-privilege)
  • OAuth 2.0 (3LO) token support
  • Better security posture for organizations with strict access policies

Affected Files

  • src/main/services/JiraService.ts — encodeBasic() and doRequest() would need to support bearer auth
  • src/renderer/components/integrations/JiraSetupForm.tsx — UI to select auth method
  • src/renderer/types/electron-api.d.ts — Updated types

Context

Requested by a user in the community — Slack thread.

arnestrickmann avatar Feb 27 '26 17:02 arnestrickmann

@arnestrickmann i would like to work on this feature

prath47 avatar Mar 01 '26 06:03 prath47