[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 vote

Me too

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

60 views 0 5
Read article

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