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, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events