Skip to content

Commit 3484cb3

Browse files
committed
fixed error
added to check for both keys in config
1 parent 8f1336e commit 3484cb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_sync/connector/umapi_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
def make_auth_dict(name, config, org_id, tech_acct, logger):
66
api_field = 'client_id' if 'client_id' in config or 'secure_client_id_key' in config else "api_key"
7-
if "api_key" and "client_id" in config:
7+
if "api_key" in config and "client_id" in config:
88
raise AssertionException('Please use client_id. Cannot contain setting for both "api_key" and "client_id".')
9-
if "api_key" and "secure_client_id" in config:
9+
if "api_key" in config and "secure_client_id" in config:
1010
raise AssertionException('Please use "secure_client_id_key". Cannot contain setting for both "api_key" and "secure_client_id_key".')
1111
auth_dict = {
1212
'org_id': org_id,

0 commit comments

Comments
 (0)