Closed jmacdone closed 1 year ago
Hello, so the username and password isn't just used for the message trace call. There are many calls that depend on cookies that are grabbed using selenium. The reason we used selenium was because the official REST API didn't return the information we needed.
Also, please feel free to submit a pull request, we always welcome them!
đź’ˇ Summary
I'd like to see the requirement for an exchange admin user dropped in favor of a service principal
Motivation and context
I thought it was odd to require both interactive credentials and an app registration. I'd prefer to setup just the app registration. Additionally, screen scraping is known to be brittle. The REST interface should be less so.
Implementation notes
https://learn.microsoft.com/en-us/previous-versions/office/developer/o365-enterprise-developers/jj984335(v=office.15)#fields
At a glance,
messagetrace.py
would updated to call something likeThis
messagetrace.py
just happened to be the first instance of selenium I saw. There could be others.Acceptance criteria
API permission requirements are updated to include
ReportingWebService.Read.All
and the['auth']['username']
and['auth']['password']
config requirements are removed.