Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ConfidentialClientApplicationBuilder.CreateWithOptions() #51

Open
jmprieur opened this issue Jun 10, 2019 · 1 comment
Open

Use ConfidentialClientApplicationBuilder.CreateWithOptions() #51

jmprieur opened this issue Jun 10, 2019 · 1 comment
Assignees

Comments

@jmprieur
Copy link

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

@BrianTJackett
Copy link
Collaborator

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 BrianTJackett self-assigned this Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants