Table of Contents

Class OAuthDeviceAuthorizationResponse

Namespace
MailFathom.Common.OAuth
Assembly
MailFathom.Common.dll

The subset of an RFC 8628 device authorization response MailFathom reads.

[SuppressMessage("Design", "CA1054:URI-like parameters should not be strings", Justification = "The value is a JSON field read verbatim from an authorization server this process does not own. Binding it as a Uri would move a malformed value's failure inside deserialization, where it arrives as a format exception rather than as the sanitized authorization failure the caller reports.")]
[SuppressMessage("Design", "CA1056:URI-like properties should not be strings", Justification = "The value is a JSON field read verbatim from an authorization server this process does not own. Binding it as a Uri would move a malformed value's failure inside deserialization, where it arrives as a format exception rather than as the sanitized authorization failure the caller reports.")]
public sealed record OAuthDeviceAuthorizationResponse : IEquatable<OAuthDeviceAuthorizationResponse>
Inheritance
OAuthDeviceAuthorizationResponse
Implements
Inherited Members

Constructors

OAuthDeviceAuthorizationResponse(string?, string?, string?, string?, int?, int?, string?)

The subset of an RFC 8628 device authorization response MailFathom reads.

Properties

DeviceCode

The code the token request polls with.

Error

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

ExpiresInSeconds

How long the device code stays pollable.

IntervalSeconds

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

UserCode

The short code a person types at the verification address.

VerificationUri

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

VerificationUriComplete

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

Methods

ToString()

Returns a string that represents the current object.