Skip to content

Commit

Permalink
GH #755 - Working on Microsoft 365.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Oct 22, 2024
1 parent 43889d9 commit 7ea6254
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions code/zato-cli/src/zato/cli/enmasse.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,10 +707,10 @@ class Include_Type:

# Generic connections - Cloud Microsoft 365
zato_generic_connection_microsoft_365: [
'type_',
'name',
'client_id',
'type_',
'tenant_id',
'client_id',
'scopes',
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@
- name: /demo/enmasse/simple-06/topic-01.{test_suffix}
- name: /demo/enmasse/simple-06/topic-02.{test_suffix}
zato_generic_connection:
- name: '{test_suffix}.Microsoft365'
type_: cloud-microsoft-365
tenant_id: {test_suffix} - My Teant ID
client_id: {test_suffix} - My Client ID
secret: "{test_suffix} - My Secret"
scopes: https://graph.microsoft.com/.default
"""

# ################################################################################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ class SimpleIO(ChangePasswordBase.SimpleIO):

def _run_pre_handle_tasks_CLOUD_MICROSOFT_365(self, session:'any_', instance:'any_') -> 'None':

# Disabled, no longer in use
return

# stdlib
from json import dumps, loads
from urllib.parse import parse_qs, urlsplit
Expand All @@ -426,12 +429,6 @@ def _run_pre_handle_tasks_CLOUD_MICROSOFT_365(self, session:'any_', instance:'an
query = urlsplit(auth_url).query
parsed = parse_qs(query)

self.logger.info('*' * 80)
self.logger.info('111 %r', auth_url)
self.logger.info('222 %r', query)
self.logger.info('333 %r', parsed)
self.logger.info('*' * 80)

state = parsed['state']
state = state[0]

Expand Down

0 comments on commit 7ea6254

Please sign in to comment.