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?