dotnetcore-console-sample icon indicating copy to clipboard operation
dotnetcore-console-sample copied to clipboard

Use ConfidentialClientApplicationBuilder.CreateWithOptions()

Open jmprieur opened this issue 6 years ago • 1 comments

The sample instanciates the IConfidentialClientApplication by reading the options and then setting them with .With methods.

The code could be even simpler by using `ConfidentialClientApplicationBuilder.CreateWithOptions() An example is available from https://github.com/Azure-Samples/active-directory-dotnet-iwa-v2/blob/1440daf07be2c1f46a2d2c5719478c7d555e69d0/iwa-console/Program.cs#L57-L60 or https://github.com/Azure-Samples/active-directory-dotnetcore-daemon-v2/blob/b0bfe0d8281945435d4b499d0a47ac5a6d8203a7/daemon-console/Program.cs#L62-L78

jmprieur avatar Jun 10 '19 13:06 jmprieur

Have the CreateWithOptions() process working on the base-console-app sample project. A few of the other samples have additional requirements (settings for AAD domain, SPO site, etc.) that will require a slightly different implementation to work. Trying to address as cleanly and consistently as possibly across the various projects.

BrianTJackett avatar Jun 12 '19 12:06 BrianTJackett