[jira-python] Reuse session with basic auth

We are doing some tests with jira-python 0.31 and we are connecting to our server with basic_auth. The documentation says: "At initialization time, jira-python can optionally create an HTTP BASIC or use OAuth 1.0a access tokens for user authentication. These sessions will apply to all subsequent calls to the JIRA object."

But we find that each time that our scripts perform a search or create an issue a new session is stablished (our test user have reached about 100k logins). The client.jira.JIRA constructor is called only once.

Our environment is:

JIRA server v6.1.7

Windows7 64, Python 2.7.8, 'bitstring==3.1.3', 'certifi==14.05.14', 'filemagic==1.6', 'httplib2==0.9', 'ipython==2.2.0', 'jira==0.31', 'libmagic==1.0', 'oauth2==1.5.211', 'oauthlib==0.6.3', 'plumbum==1.4.2', 'psycopg2==2.5.3', 'pycrypto==2.6', 'pygments==1.6', 'pypm==1.4.3', 'pyreadline==2.0', 'pyserial=

=2.7', 'python-magic==0.4.6', 'pythonselect==1.3', 'pywin32==218.3', 'requests-oauthlib==0.4.1', 'requests==2.4.0', 'robotframework-ride==1.3', 'robotframework==2.8.5', 'rpyc==3.3.0', 'six==1.8.0', 'tlslite==0.4.6', 'virtualenv==1.11.6', 'wsgiref==0.1.2', 'xlrd==0.9.3'

 Thank you!

2 answers

1 accepted

We have the same problem. A solution or answer would be nice

0 votes

Me too

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,079 views 13 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot