Atlassian Connect. How to use an JIRA authentication header?

52 views
Skip to first unread message

Vitaliy

unread,
Jan 11, 2014, 1:57:12 PM1/11/14
to atlassian-...@googlegroups.com
Help me please. I'm working on my first JIRA plugin using Atlassian Connect (my platform is django/python) and having a real hard time figuring out how to do a REST requests to JIRA on behalf of the current JIRA user. I want to use jira-python, but it required auth_token and auth_token_secret, but I don't have it.

Here's my authentication header (JIRA has sent it to me when an user click on the link of my addon every time):

[09/Jan/2014 20:47:52] "GET /app/?
 
?oauth_version=1.0
&user_id=admin
 
&oauth_signature_method=RSA-SHA1
&oauth_nonce=1389199973324143000
&oauth_consumer_key=jira%3E045e3efe-711a-4aca-9fbb-dc62fa62fb03
&oauth_timestamp=1389199973
&oauth_signature=XXXXXXX
 
&user_key=admin
&loc=ru-RU
&lic=none
&cp=%2Fjira
&tz=Europe%2FMoscow
&xdm_e=http%3A%2F%2Flocalhost%3A2990
&xdm_c=channel-servlet-general
&xdm_p=1
HTTP/1.1" 200 3540

How can I use these parameters to do REST requests from the current JIRA user?

Any suggestions?

I spent two days .. I have no success so far. Please describe the algorithm, what should I do to get access_token please. 

Thanks

Seb Ruiz

unread,
Jan 11, 2014, 11:56:07 PM1/11/14
to atlassian-...@googlegroups.com
Hi Vitaliy,
Please see my alternate answer on a separate thread, which recommends that you use JWT over the now deprecated OAuth 1.0.

Regards,
Seb


--
You received this message because you are subscribed to the Google Groups "Atlassian Connect Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Seb Ruiz
Atlassian
Reply all
Reply to author
Forward
0 new messages