jira-cli
jira-cli copied to clipboard
keychain + PAT does not work
Describe the bug Does not work with API token saved to keychain
Please provide following details
- JiraCLI Version:
(Version="1.4.0", GitCommit="eb842e18014303a575fde8e19508b3c7c13982c5", CommitDate="2023-05-09T07:09:45+00:00", GoVersion="go1.19.4", Compiler="gc", Platform="darwin/arm64")
- Are you using Jira cloud or on-premise jira server?
SERVER INFO
-----------
Version: 8.20.10
Build Number: 820010
Deployment Type: Server
Default Locale:
- What operating system are you using? Also mention version.
ProductName: macOS
ProductVersion: 13.4.1
ProductVersionExtra: (c)
BuildVersion: 22F770820d
- What terminal are you using? Also mention version.
kitty 0.29.1 created by Kovid Goyal
To Reproduce
Steps to reproduce the behavior:
- add PAT to keychain access -> Local Items, as described in configuration
-
export JIRA_AUTH_TYPE=bearer
- without existing jira configuration run `jira init
- you'll see 401 error
Expected behavior init process is successful
Additional context it works if the API key is in login chain though, so maybe just the configuration should be updated.