Class AcquireTokenWithDeviceCodeParameterBuilder
Parameters builder for the AcquireTokenWithDeviceCode(IEnumerable<string>, Func<DeviceCodeResult, Task>) operation. See https://aka.ms/msal-net-device-code-flow
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