Skip to content

Commit

Permalink
Merge pull request #479 from pbabinca/fix_kerberos_mutual_authentication
Browse files Browse the repository at this point in the history
Make OPTIONAL default and allowed value of mutual_authentication
  • Loading branch information
ssbarnea authored Jan 5, 2018
2 parents d952e7a + a8ca694 commit 91d15af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2306,8 +2306,9 @@ def _create_kerberos_session(self, timeout, kerberos_options=None):
from requests_kerberos import HTTPKerberosAuth
from requests_kerberos import OPTIONAL

mutual_authentication = OPTIONAL
if kerberos_options.get('mutual_authentication') == 'DISABLED':
if kerberos_options.get('mutual_authentication', 'OPTIONAL') == 'OPTIONAL':
mutual_authentication = OPTIONAL
elif kerberos_options.get('mutual_authentication') == 'DISABLED':
mutual_authentication = DISABLED
else:
raise ValueError("Unknown value for mutual_authentication: %s" %
Expand Down

0 comments on commit 91d15af

Please sign in to comment.