Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

jira oauth with python

M S April 22, 2019

I'm creating an application integration with python flask and jira. I wanted to do authentication with oAuth 2.0 to authenticate my users with Jira. is there any full example for that?

I found an example which is incomplete:  https://jira.readthedocs.io/en/master/examples.html#oauth

key_cert_data = None
with open(key_cert, 'r') as key_cert_file:
    key_cert_data = key_cert_file.read()

oauth_dict = {
    'access_token': 'foo',
    'access_token_secret': 'bar',
    'consumer_key': 'jira-oauth-consumer',
    'key_cert': key_cert_data
}
auth_jira = JIRA(oauth=oauth_dict)

 

But how can I generate key_cert_file, access_token, access_token_secret and consumer_key?

or is there any better way or version of this?

 

1 answer

0 votes
M S April 23, 2019

please guys, help me.

Lokesh Naktode_miniOrange
Atlassian Partner
April 24, 2019

Hi @Maziar Sojoudian ,


Right now, JIRA does not have default support as an OAuth 2.0 Server/Provider but you can extend the JIRA's functionality to make it work as OAuth Server(OAuth 2.0) with our OAuth plugin.  Please reach out to miniOrange at info@miniorange.com with your use case so that we can provide you with our plugin and integration steps.  

 

Thanks,

Lokesh

Full disclosure: I work for the miniOrange.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events