17.53. Class MongoAuthResult

Namespace: ArmoniK.Core.Adapters.MongoDB.Table.DataModel.Auth
Assembly: ArmoniK.Core.Adapters.MongoDB.dll

Pipeline result using MongoDB syntax

public record MongoAuthResult : IEquatable<MongoAuthResult>

17.53.1. Inheritance

objectMongoAuthResult

17.53.2. Implements

IEquatable<MongoAuthResult>

17.53.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

17.53.4. Constructors

17.53.4.1. MongoAuthResult(ObjectId, string, IEnumerable<string>, IEnumerable<string>)

Pipeline result using MongoDB syntax

public MongoAuthResult(ObjectId Id, string Username, IEnumerable<string> Roles, IEnumerable<string> Permissions)

17.53.4.1.1. Parameters

Id ObjectId

User Id

Username string

Username

Roles IEnumerable<string>

User’s roles

Permissions IEnumerable<string>

User’s permissions

17.53.5. Properties

17.53.5.1. Id

User Id

[BsonId]
public ObjectId Id { get; init; }

17.53.5.1.1. Property Value

ObjectId

17.53.5.2. Permissions

User’s permissions

public IEnumerable<string> Permissions { get; init; }

17.53.5.2.1. Property Value

IEnumerable<string>

17.53.5.3. Roles

User’s roles

public IEnumerable<string> Roles { get; init; }

17.53.5.3.1. Property Value

IEnumerable<string>

17.53.5.4. Username

Username

public string Username { get; init; }

17.53.5.4.1. Property Value

string

17.53.6. Methods

17.53.6.1. ToUserAuthenticationResult()

Converts this MongoDB pipeline result into a UserAuthenticationResult

public UserAuthenticationResult ToUserAuthenticationResult()

17.53.6.1.1. Returns

UserAuthenticationResult

UserAuthenticationResult from this object