Condividi tramite


AcquireTokenWithDeviceCodeParameterBuilder.WithDeviceCodeResultCallback Method

Definition

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 Microsoft.Identity.Client.AcquireTokenWithDeviceCodeParameterBuilder WithDeviceCodeResultCallback (Func<Microsoft.Identity.Client.DeviceCodeResult,System.Threading.Tasks.Task> deviceCodeResultCallback);
member this.WithDeviceCodeResultCallback : Func<Microsoft.Identity.Client.DeviceCodeResult, System.Threading.Tasks.Task> -> Microsoft.Identity.Client.AcquireTokenWithDeviceCodeParameterBuilder
Public Function WithDeviceCodeResultCallback (deviceCodeResultCallback As Func(Of DeviceCodeResult, Task)) As AcquireTokenWithDeviceCodeParameterBuilder

Parameters

deviceCodeResultCallback
Func<DeviceCodeResult,Task>

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

Returns

The builder to chain the .With methods

Applies to