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

AcquireTokenInteractive should not throw on NetCore when using a CustomWebUI #1058

Closed
bgavrilMS opened this issue Apr 10, 2019 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@bgavrilMS
Copy link
Member

MSAL 3.0.3-preview

User this code on .NetCore

await pca
                .AcquireTokenInteractive(s_scopes)
                .WithCustomWebUi(someWebUI)
                .ExecuteAsync(new CancellationTokenSource(_interactiveAuthTimeout).Token)
                .ConfigureAwait(false);

Expected: this should work
Actual:

System.PlatformNotSupportedException: 'On .NET Core, interactive authentication is not supported. Consider using Device Code Flow https://aka.ms/msal-net-device-code-flow or Integrated Windows Auth https://aka.ms/msal-net-iwa'

@bgavrilMS
Copy link
Member Author

I propose we fix this before removing the -preview tag as well. It's an easy fix, we just need to improve the validation and move it somwhere else. Feel free to propose a new milestone if you disagree @jmprieur

@bgavrilMS bgavrilMS added this to the 3.0.4 milestone Apr 10, 2019
@jmprieur
Copy link
Contributor

yes, go ahead @bgavrilMS
this bugs defeats a bit the purpose of the custom Web UI on that platform :)

@jennyf19
Copy link
Collaborator

Included in MSAL.NET 3.0.6-preview release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants