feat(jira): Support bearer auth tokens for scoped Jira access
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()anddoRequest()would need to support bearer authsrc/renderer/components/integrations/JiraSetupForm.tsx— UI to select auth methodsrc/renderer/types/electron-api.d.ts— Updated types
Context
Requested by a user in the community — Slack thread.
@arnestrickmann i would like to work on this feature