Skip to content

Commit 179d7bc

Browse files
committed
Merge branch 'v2' into feature/update-config
2 parents 6657b4f + 1abf567 commit 179d7bc

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

examples/config files - basic/connector-adobe-console.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ server:
2727
# client_id and client_secret can be stored in plaintext or can be secured (see below)
2828
# See https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/sync_from_console.html#integration-settings
2929
integration:
30-
org_id: "Org ID goes here"
3130
client_id: "Client ID goes here"
3231
client_secret: "Client secret goes here"
32+
org_id: "Org ID goes here"
3333

3434
# NOTE: Credentials can be stored securely with these options
3535
# secure_client_id_key: my_client_id

examples/config files - basic/connector-umapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ server:
2626
# client_id and client_secret can be stored in plaintext or can be secured (see below)
2727
# See https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/connect_adobe.html#enterprise-settings
2828
enterprise:
29-
org_id: "Org ID goes here"
3029
client_id: "Client ID goes here"
3130
client_secret: "Client secret goes here"
31+
org_id: "Org ID goes here"
3232

3333
# NOTE: Credentials can be stored securely with these options
3434
# secure_client_id_key: my_client_id

user_sync/connector/connector_umapi.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ def __init__(self, name, caller_options, is_primary=False):
7070
server_builder.set_string_value('host', 'usermanagement.adobe.io')
7171
server_builder.set_string_value('endpoint', '/v2/usermanagement')
7272

73-
auth_host_key = 'ims_host' if 'ims_host' in server_config else 'auth_host'
74-
server_builder.set_string_value(auth_host_key, 'ims-na1.adobelogin.com')
73+
if server_config is None:
74+
auth_host_key = 'auth_host'
75+
auth_endpoint_key = 'auth_endpoint'
76+
else:
77+
auth_host_key = 'ims_host' if 'ims_host' in server_config else 'auth_host'
78+
auth_endpoint_key = 'ims_endpoint_jwt' if 'ims_endpoint_jwt' in server_config else 'auth_endpoint'
7579

76-
auth_endpoint_key = 'ims_endpoint_jwt' if 'ims_endpoint_jwt' in server_config else 'auth_endpoint'
80+
server_builder.set_string_value(auth_host_key, 'ims-na1.adobelogin.com')
7781
auth_endpoint_default = '/ims/exchange/jwt'
7882
if options['authentication_method'] == 'oauth':
7983
auth_endpoint_default = '/ims/token/v2'

user_sync/connector/directory_adobe_console.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@ def __init__(self, caller_options, *args, **kwargs):
6060
server_builder.set_string_value('endpoint', '/v2/usermanagement')
6161
server_builder.set_string_value('ims_endpoint_jwt', '/ims/exchange/jwt')
6262

63-
auth_host_key = 'ims_host' if 'ims_host' in server_config else 'auth_host'
64-
server_builder.set_string_value(auth_host_key, 'ims-na1.adobelogin.com')
63+
if server_config is None:
64+
auth_host_key = 'auth_host'
65+
auth_endpoint_key = 'auth_endpoint'
66+
else:
67+
auth_host_key = 'ims_host' if 'ims_host' in server_config else 'auth_host'
68+
auth_endpoint_key = 'ims_endpoint_jwt' if 'ims_endpoint_jwt' in server_config else 'auth_endpoint'
6569

66-
auth_endpoint_key = 'ims_endpoint_jwt' if 'ims_endpoint_jwt' in server_config else 'auth_endpoint'
70+
server_builder.set_string_value(auth_host_key, 'ims-na1.adobelogin.com')
6771
auth_endpoint_default = '/ims/exchange/jwt'
6872
if options['authentication_method'] == 'oauth':
6973
auth_endpoint_default = '/ims/token/v2'

0 commit comments

Comments
 (0)