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

Howto authenticate to JIRA via REST using crowd

Stefan Zeller August 21, 2011

We have JIRA behind a CROWD server and I want to use the REST service of JIRA.

I authenticate to JIRA with the rest URL https://jira.mycompany.com/rest/auth/1/session

I get back the JSESSIONID, which is fine. But any following call to the JIRA REST service including the JSESSIONID fails. After investigating I found out that the crowd token is missing (crowd.token_key=...).

How do I get this token programatically via REST?

Or more generally asked: What is the best practice to achieve REST calls to JIRA when it's behind a CROWD server?

Thanks and regards

Stefan

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Dave Thomas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2011

As long as you have a JSESSIONID, you should be fine. Our instance of Jira is integrated with Crowd and we've scripted extensively against Jira without doing anything special. I've never heard of anyone needing a crowd token key. Perhaps you're talking about Jira's form token handling? Here's how to get around that:

http://confluence.atlassian.com/display/JIRADEV/Form+Token+Handling

Chris Whitten [Comskil] January 22, 2016

@Dave Thomas how did you get the JSESSIONID? I think the crowd token key is needed with use for SSO.

TAGS
AUG Leaders

Atlassian Community Events