Skip to content

Commit ea35192

Browse files
committed
Accept the user-sync key names in the authentication dictionary.
Since User sync uses the names "tech_acct" and "priv_key_file" rather than "tech_acct_id" and "private_key_file", we accept those as well so clients can use the User Sync config files directly.
1 parent 43fd003 commit ea35192

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

HISTORY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,10 @@ Server-compatibility release:
4242
* fix typos in docs
4343
* fix param documentation in functional API
4444
* update wire protocol for remove_from_organization with deletion of account to match server changes
45+
46+
### Version TBD
47+
48+
Enhancement release:
49+
50+
* (No Issue)
51+
* allow User Sync config key names in the connection `auth_dict`

umapi_client/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def __init__(self,
123123
def _get_auth(self, ims_host, ims_endpoint_jwt,
124124
tech_acct_id=None, api_key=None, client_secret=None, private_key_file=None,
125125
**kwargs):
126+
tech_acct_id = tech_acct_id or kwargs.get("tech_acct")
127+
private_key_file = private_key_file or kwargs.get("priv_key_path")
126128
if not (tech_acct_id and api_key and client_secret and private_key_file):
127129
raise ValueError("Connector create: not all required auth parameters were supplied; please see docs")
128130
with open(private_key_file, 'r') as private_key_stream:

0 commit comments

Comments
 (0)