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

Initial configuration failing since v0.1.30 #38

Closed
jakubmeysner opened this issue May 15, 2024 · 2 comments
Closed

Initial configuration failing since v0.1.30 #38

jakubmeysner opened this issue May 15, 2024 · 2 comments

Comments

@jakubmeysner
Copy link
Contributor

Initial configuration is failing with the following error since version v0.1.30 (the error did not appear when I tried v0.1.29).

Unhandled exception: System.PlatformNotSupportedException: 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
   at Microsoft.Identity.Client.PublicClientApplicationBuilder.WithBroker(Boolean enableBroker)
   at MSStore.CLI.Services.TokenManager.MSALTokenManager.InitAppAsync() in /_/MSStore.CLI/Services/TokenManager/MSALTokenManager.cs:line 59
   at MSStore.CLI.Services.TokenManager.MSALTokenManager.SelectAccountAsync(Boolean notMSA, Boolean forceSelection, CancellationToken ct) in /_/MSStore.CLI/Services/TokenManager/MSALTokenManager.cs:line 114
   at MSStore.CLI.Services.CLIConfigurator.GetOrganizationAsync(Configurations config, Boolean forceSelection, CancellationToken ct) in /_/MSStore.CLI/Services/CLIConfigurator.cs:line 389
   at MSStore.CLI.Services.CLIConfigurator.ConfigureAsync(Boolean askConfirmation, Nullable`1 tenantId, String sellerId, Nullable`1 clientId, String clientSecret, String certificateThumbprint, String certificateFilePath, String certificatePassword, CancellationToken ct) in /_/MSStore.CLI/Services/CLIConfigurator.cs:line 76
   at MSStore.CLI.MicrosoftStoreCLI.Handler.InvokeAsync(InvocationContext context) in /_/MSStore.CLI/MicrosoftStoreCLI.cs:line 83
   at System.CommandLine.NamingConventionBinder.CommandHandler.GetExitCodeAsync(Object returnValue, InvocationContext context)
   at System.CommandLine.NamingConventionBinder.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at MSStore.CLI.Program.<>c.<<Main>b__0_2>d.MoveNext() in /_/MSStore.CLI/Program.cs:line 229
--- End of stack trace from previous location ---
   at System.CommandLine.Hosting.HostingExtensions.<>c__DisplayClass1_0.<<UseHost>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

When configured on an older version it seemed to work as expected.

@azchohfi
Copy link
Contributor

We are working on a fix, should be available in a few hours.

@azchohfi
Copy link
Contributor

Fixed. Should be out in the store soon, but the release is here.

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