jira-cli icon indicating copy to clipboard operation
jira-cli copied to clipboard

Access to local hosted server with token fails unless anonymous

Open jimcornmell opened this issue 9 months ago • 1 comments

Hi, Using curl/httpie (https://httpie.io) I can access our local self hosted instance, with bearer token. However jira-cli fails.

I've tried using the token and password with jira-cli, also with no username and with a username, i.e. with this .jira-cli.json.

{"protocol":"https","host":"host.name.org","username":"username","password":"MYTOKEN","apiVersion":"2","strictSSL":true}

Note if I remove the user and password, as follows, anonymous access works with jira-cli:

{"protocol":"https","host":"host.name.org","apiVersion":"2","strictSSL":true}

Then jira p, returns a few results, with no error:

 $  jira p
                                            
  Key    Name                                 
  DLM    Document Library Maintenance         
  ELPM   E-Learning Presentation Maintenance  
  SELM   Spanish E-Learning Maintenance       

As I said this script using httpie in bash works:

HOST=https://out.host.org
TOKEN=MY_API_TOKEN

https GET "${HOST}/rest/api/2/project" -A bearer -a "${TOKEN}"

What am I doing wrong? Or is this an issue with self hosting (I have no access to change the local host config :-(

jimcornmell avatar Oct 04 '23 11:10 jimcornmell