Table of Contents

Class MailboxAuthorizationFailedException

Namespace
MailFathom.Common.MailboxOAuth
Assembly
MailFathom.Common.dll

Indicates that an operator-driven authorization run did not produce a refresh token to provision.

public sealed class MailboxAuthorizationFailedException : MailFathomException, ISerializable
Inheritance
MailboxAuthorizationFailedException
Implements
Inherited Members

Remarks

The payload is the authorization server's own error code and nothing else. RFC 6749 and RFC 8628 both define that value as a fixed vocabulary, which is what tells an operator that consent was declined (access_denied), that the device code ran out (expired_token), or that the client registration is wrong (invalid_client). Two values are MailFathom's own and named so they cannot collide with a registered one: no_refresh_token_issued for a grant that authenticates once and would then strand the deployment, and device_authorization_incomplete for a response missing the fields the flow needs.

Constructors

MailboxAuthorizationFailedException(string)

Initializes a new authorization failure.

Properties

AuthorizationServerErrorCode

Gets the error code the authorization server returned.

ErrorCode

Gets the stable code identifying this failure to a boundary that must report it without naming a type.