Hello,
I got an email about "D365 Platform Modernization: Deprecate legacy authentication-WS-Trust" last week. I compared my code with the one mentioned in that email about how to determine that my code is using WS-Trust, I found that I was using the OrganizationServiceProxy class, it belongs to WS-Trust.
I found an article published in 2019 on the official website about how to use CrmServiceClient to connect to organization services. Please see the following screenshot. But I feel like the code provided in this screenshot also belongs to WS-Trust, not office 365.
I just want to make sure that the way I connect to the organization service given in the following screenshot belongs to WS-Trust, and if I want to change it based on the code in it, how do I need to modify this code to change my security protocol from WS-Trust to Office 365.