Skip to content

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

@jimcornmell

Description

@jimcornmell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions