When you create a new project in Visual Studio there is an option in the wizard that lets you specify authentication types, so choose what you want and the project created will already have all the code you need.
Marked as answer byAnonymousThursday, October 7, 2021 12:00 AM