Table of Contents

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

DeviceCode string

The code the token request polls with.

UserCode string

The short code a person types at the verification address.

VerificationUri string

The address a person opens on a device that has a browser.

VerificationUriComplete string

The same address with the user code embedded, which providers may omit.

ExpiresInSeconds int?

How long the device code stays pollable.

IntervalSeconds int?

The minimum seconds between polls, defaulting to the RFC's 5 when absent.

Error string

The error code from a rejected request, absent from a successful one.