Skip to content

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

@DharshanBJ

Description

@DharshanBJ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions