How to enable OAuth on WCF Soap Web services

With Microsoft Dynamics 365 Business Central 2022 Wave 1 (Version 20), basic authentication is no longer available for web services. Many applications have been written using Microsoft Communication Foundation (WCF) to talk with NAV/BC via the Soap protocol. This video shows how to enable an existing C# app using .NET Framework 4.7 with OAuth. Check it out:

https://youtu.be/koFSWLgmQsI