[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

This widget could not be displayed.

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

This widget could not be displayed.

Me too

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

258 views 1 3
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