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

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! :) 

Suggest an answer

Log in or Sign up to answer