Table of Contents

Class AcquireTokenWithDeviceCodeParameterBuilder

Namespace
Microsoft.Identity.Client
Assembly
Microsoft.Identity.Client.dll
public sealed class AcquireTokenWithDeviceCodeParameterBuilder : AbstractPublicClientAcquireTokenParameterBuilder<AcquireTokenWithDeviceCodeParameterBuilder>
Inheritance
AcquireTokenWithDeviceCodeParameterBuilder
Inherited Members
Extension Methods

Methods

Validate()

protected override void Validate()

WithDeviceCodeResultCallback(Func<DeviceCodeResult, Task>)

Sets the Callback delegate so your application can interact with the user to direct them to authenticate (to a specific URL, with a code)

public AcquireTokenWithDeviceCodeParameterBuilder WithDeviceCodeResultCallback(Func<DeviceCodeResult, Task> deviceCodeResultCallback)

Parameters

deviceCodeResultCallback Func<DeviceCodeResult, Task>

callback containing information to show the user about how to authenticate and enter the device code.

Returns

AcquireTokenWithDeviceCodeParameterBuilder

The builder to chain the .With methods