Table of Contents

Method Authenticated

Namespace
MailFathom.Infrastructure.Security.Passwords
Assembly
MailFathom.Infrastructure.dll

Authenticated(Guid, UserId, IReadOnlyList<MailFathomPermission>, UserEndpointAccess, UserCredentialReach)

Creates a successful result naming the credential that matched and what it admits.

public static UserPasswordAuthenticationResult Authenticated(Guid authenticatedCredentialId, UserId user, IReadOnlyList<MailFathomPermission> permissions, UserEndpointAccess endpointAccess, UserCredentialReach reach)

Parameters

authenticatedCredentialId Guid

The identifier of the matching credential.

user UserId

The user the request acts for.

permissions IReadOnlyList<MailFathomPermission>

What the request may do.

endpointAccess UserEndpointAccess

Which endpoints the user may be served on, read beside the credential.

reach UserCredentialReach

Where the credential may be presented.

Returns

UserPasswordAuthenticationResult

The successful result.

Exceptions

ArgumentNullException

Thrown when permissions or reach is null.

ArgumentException

Thrown when the identifier is empty or user names nobody.