Constructor OAuthDeviceAuthorizationResponse
- Namespace
- MailFathom.Common.OAuth
- Assembly
- MailFathom.Common.dll
OAuthDeviceAuthorizationResponse(string?, string?, string?, string?, int?, int?, string?)
The subset of an RFC 8628 device authorization response MailFathom reads.
public OAuthDeviceAuthorizationResponse(string? DeviceCode, string? UserCode, string? VerificationUri, string? VerificationUriComplete, int? ExpiresInSeconds, int? IntervalSeconds, string? Error)
Parameters
DeviceCodestringThe code the token request polls with.
UserCodestringThe short code a person types at the verification address.
VerificationUristringThe address a person opens on a device that has a browser.
VerificationUriCompletestringThe same address with the user code embedded, which providers may omit.
ExpiresInSecondsint?How long the device code stays pollable.
IntervalSecondsint?The minimum seconds between polls, defaulting to the RFC's 5 when absent.
ErrorstringThe error code from a rejected request, absent from a successful one.