jira python oauth: how to get the parameters for authentication?

前端 未结 3 458
野趣味
野趣味 2021-02-04 09:35

I am trying to use oauth to access jira, and I am reading this document: Welcome to jira-python\'s documentation.

But in this oauth part, I cannot figure out how I can g

3条回答
  •  感动是毒
    2021-02-04 09:53

    First you need to add an application link to JIRA for your application: https://confluence.atlassian.com/display/JIRA060/Configuring+Application+Links

    For the case when the application accessing JIRA is not a web application, you can use arbitrary URL as the application URL, but that url will be used to retrieve the application icon when it's displayed in the list of Application Links in administrative UI of JIRA.

    Then you would need to do a so called "oauth dance" to get an OAuth token and its corresponding secret. Please take a look at Atlassian examples here: https://bitbucket.org/atlassian_tutorial/atlassian-oauth-examples/src

    Those examples are mostly covering the dance itself, while the authentication using OAuth token+secret (which is received during the dance) is documented here: http://jira.readthedocs.io/en/latest/examples.html#oauth. I hope this helps.

    At least it worked for me (also in Python for my case). :)

提交回复
热议问题