Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

API token generation using basic authentication doesn't work

Waikhom,Bebikananda
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!
February 3, 2020

I was trying to generate a new REST API token from a Fisheye and Crucible site 

POST -> http://crucible02.my_organisation.com/rest-service-fecru/auth/login/

with parameter ->

{
"userName": "myusername",
"password": "mypassword"
}

by following instruction from this: https://docs.atlassian.com/fisheye-crucible/4.5.1/wadl/fecru.html#rest-service-fecru:auth

I also tried http://crucible02.my_organisation.com/rest-service-fecru/auth/login?userName=...&password=...

This also doesn't work. Can someone please tell me how to generate this API token.

1 answer

0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2020

Sorry someone is so late getting back to you.

Can you expand on what doesn't work? Are you getting some sort of error response?

Note that this token is temporary and not the recommended approach for rest authentication. You can't generate that token once, store it in your code and re-use it forever.

Generally, if a program or script has the username/password to be able to authenticate and generate a token for use in subsequent calls, then it's just as easy to always include these parameters in the authorization header for all api calls. See basic authentication

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events