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: 

Can we use username:token for api calls using rest-client in ruby

Faizan Mansuri
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 14, 2018

I tried username:password and it works, but when I replace password with token it doesn't work and gives 401 unauthorized

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2018

Hi @Faizan Mansuri,

In case you are trying to authenticate against the 'session' endpoint, then this is normal. Otherwise, can you kindly let us know the endpoint you called?

Faizan Mansuri
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2018

It works now, I just had to Uri encode the email ID.

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2018

Happy to know this works. 

Have a nice day! :)