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

Device Code Flow causes NotImplementedException for non-Entra authorities #5133

Open
DharshanBJ opened this issue Feb 11, 2025 · 1 comment
Labels
needs attention Delete label after triage public-client untriaged Do not delete. Needed for Automation

Comments

@DharshanBJ
Copy link
Contributor

Library version used

4.68.0

.NET version

9.0.102

Scenario

PublicClient - desktop app

Is this a new or an existing app?

This is a new app or experiment

Issue description and reproduction steps

microsoft-authentication-library-for-dotnet/src/client/Microsoft.Identity.Client/Instance/GenericAuthority.cs

Line 43 in 235d32d

throw new NotImplementedException();

Relevant code snippets

pca.AcquireTokenWithDeviceCode(Scopes, deviceCodeResult =>
{
    Console.WriteLine(deviceCodeResult.Message);
    return Task.FromResult(0);
}).ExecuteAsync();

Expected behavior

A token should be retrieved, using the device code flow

Identity provider

Other

Regression

No response

Solution and workarounds

No response

@DharshanBJ DharshanBJ added needs attention Delete label after triage untriaged Do not delete. Needed for Automation labels Feb 11, 2025
@DharshanBJ DharshanBJ changed the title [Bug] [Test - Issue Sentinel][Don't traige] Device Code Flow causes NotImplementedException for non-Entra authorities [Bug] [Test - Issue Sentinel][Don't triage] Device Code Flow causes NotImplementedException for non-Entra authorities Feb 11, 2025
@DharshanBJ DharshanBJ changed the title [Bug] [Test - Issue Sentinel][Don't triage] Device Code Flow causes NotImplementedException for non-Entra authorities Device Code Flow causes NotImplementedException for non-Entra authorities Feb 11, 2025
@DharshanBJ
Copy link
Contributor Author

Device code flow isn't supported for non-Entra Idenity Providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs attention Delete label after triage public-client untriaged Do not delete. Needed for Automation
Projects
None yet
Development

No branches or pull requests

1 participant