The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication via rest command fails when username is `user@domain`

jkazan
April 15, 2020

I have made a command line interface for Jira. Formerly, my username did not include an `@` and it all worked perfectly. I now have a username like `user@domain` and the authentication fails with a 401 status code.

Whenever I make a request in the browser, I can do so by putting the `user@domain.com` within quotes, e.g. https://jira.mydomain.com/rest/api/2/search?jql=assignee="user@domain"
However, putting the username in quotes for the authentication doesn't work. I also tried escaping with `\`, encoding the at sign as %40 and also with unicode. Nothing works.

Does anyone have any idea? All help is much appreciated!

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.