Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to local hosted server with token fails unless anonymous #83

Open
jimcornmell opened this issue Oct 4, 2023 · 1 comment
Open

Comments

@jimcornmell
Copy link

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 :-(

@daobrien
Copy link

Same here, but I'm not using a local Jira instance. As soon as I removed the username (just using token) I started getting sensible results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants