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

Conflicting PublicClientApplicationBuilder.WithBroker information #429

Open
zmark9 opened this issue Jun 4, 2024 · 0 comments
Open

Conflicting PublicClientApplicationBuilder.WithBroker information #429

zmark9 opened this issue Jun 4, 2024 · 0 comments
Assignees

Comments

@zmark9
Copy link

zmark9 commented Jun 4, 2024

This page shows the example

BrokerOptions options = new BrokerOptions(BrokerOptions.OperatingSystems.Windows);
options.Title = "My Awesome Application";

IPublicClientApplication app =
PublicClientApplicationBuilder.Create("YOUR_CLIENT_ID")
.WithDefaultRedirectUri()
.WithParentActivityOrWindow(GetConsoleOrTerminalWindow)
.WithBroker(options)
.Build();

in code however
the .WithBroker line
Severity Code Description Project File Line Suppression State Details
Error CS1503 Argument 1: cannot convert from 'Microsoft.Identity.Client.BrokerOptions' to 'bool'

Changing that to a bool however
Severity Code Description Project File Line Suppression State Details
Error CS0619 'PublicClientApplicationBuilder.WithBroker(bool)' is obsolete: 'The desktop broker is not directly available in the MSAL package. Install the NuGet package Microsoft.Identity.Client.Broker and call the extension method .WithBroker(BrokerOptions). For details, see https://aka.ms/msal-net-wam'

The package Microsoft.Identity.Client & Microsoft.Identity.Client.Broker (vers 4.61.2) are installed. The link shown is this page in a circular reference with no resolve.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@localden localden self-assigned this Jun 17, 2024
localden added a commit that referenced this issue Oct 29, 2024
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