21.54. 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.54.1. Inheritance

objectMongoAuthResult

21.54.2. Implements

IEquatable<MongoAuthResult>

21.54.3. Inherited Members

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

21.54.4. Constructors

21.54.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.54.4.1.1. Parameters

Id ObjectId

User Id

Username string

Username

Roles IEnumerable<string>

User’s roles

Permissions IEnumerable<string>

User’s permissions

21.54.5. Properties

21.54.5.1. Id

User Id

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

21.54.5.1.1. Property Value

ObjectId

21.54.5.2. Permissions

User’s permissions

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

21.54.5.2.1. Property Value

IEnumerable<string>

21.54.5.3. Roles

User’s roles

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

21.54.5.3.1. Property Value

IEnumerable<string>

21.54.5.4. Username

Username

public string Username { get; init; }

21.54.5.4.1. Property Value

string

21.54.6. Methods

21.54.6.1. ToUserAuthenticationResult()

Converts this MongoDB pipeline result into a UserAuthenticationResult

public UserAuthenticationResult ToUserAuthenticationResult()

21.54.6.1.1. Returns

UserAuthenticationResult

UserAuthenticationResult from this object