Skip to content

Commit dc2d384

Browse files
authored
Merge pull request #33 from guymatz/validate
Added validate option to basic auth
2 parents 6f4d929 + 9c15b6d commit dc2d384

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

actions/lib/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def _get_client(self):
3838

3939
elif auth_method == 'basic':
4040
basic_creds = (config['username'], config['password'])
41-
client = JIRA(options=options, basic_auth=basic_creds)
41+
client = JIRA(options=options, basic_auth=basic_creds,
42+
validate=config.get('validate', False))
4243

4344
else:
4445
msg = ('You must set auth_method to either "oauth"',

config.schema.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,8 @@
5858
type: "string"
5959
secret: false
6060
required: true
61+
validate:
62+
description: "If true it will validate your credentials first."
63+
type: boolean
64+
default: false
65+
required: false

0 commit comments

Comments
 (0)