Table of Contents

Struct UserEndpointAccess

Namespace
MailFathom.Domain.Access
Assembly
MailFathom.Domain.dll

Which of the two mail-serving endpoints one user may be served on.

public readonly record struct UserEndpointAccess : IEquatable<UserEndpointAccess>
Implements
Inherited Members

Remarks

The switches are the user's rather than a credential's, which is the whole of the decision: a person kept off a surface is refused there whichever credential they present, so no credential can be provisioned around it. What a credential admitted on a surface may then do is still its grant, and neither switch widens that.

A user is recorded reaching both, which is Everywhere. The struct default reaches neither, so a value something forgot to read refuses rather than admits.

Constructors

UserEndpointAccess(bool, bool)

Which of the two mail-serving endpoints one user may be served on.

Properties

ClientEndpoint

Whether a credential or a session of this user is admitted on the client endpoint.

Everywhere

Gets the access a user is recorded with: both endpoints.

McpEndpoint

Whether a credential of this user is admitted on the MCP endpoint.