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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

API token generation using basic authentication doesn't work Edited

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

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
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

101 views 1 0
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you