21.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>

21.53.1. Inheritance

objectMongoAuthResult

21.53.2. Implements

IEquatable<MongoAuthResult>

21.53.3. Inherited Members

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

21.53.4. Constructors

21.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)

21.53.4.1.1. Parameters

Id ObjectId

User Id

Username string

Username

Roles IEnumerable<string>

User’s roles

Permissions IEnumerable<string>

User’s permissions

21.53.5. Properties

21.53.5.1. Id

User Id

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

21.53.5.1.1. Property Value

ObjectId

21.53.5.2. Permissions

User’s permissions

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

21.53.5.2.1. Property Value

IEnumerable<string>

21.53.5.3. Roles

User’s roles

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

21.53.5.3.1. Property Value

IEnumerable<string>

21.53.5.4. Username

Username

public string Username { get; init; }

21.53.5.4.1. Property Value

string

21.53.6. Methods

21.53.6.1. ToUserAuthenticationResult()

Converts this MongoDB pipeline result into a UserAuthenticationResult

public UserAuthenticationResult ToUserAuthenticationResult()

21.53.6.1.1. Returns

UserAuthenticationResult

UserAuthenticationResult from this object