26.47. 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>
26.47.1. Inheritance
26.47.2. Implements
26.47.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
26.47.4. Constructors
26.47.4.1. MongoAuthResult(int, string, IEnumerable<string>, IEnumerable<string>)
Pipeline result using MongoDB syntax
public MongoAuthResult(int Id, string Username, IEnumerable<string> Roles, IEnumerable<string> Permissions)
26.47.4.1.1. Parameters
Id int
User Id
Username string
Username
Roles IEnumerable<string>
User’s roles
Permissions IEnumerable<string>
User’s permissions
26.47.5. Properties
26.47.5.1. Id
User Id
[BsonId]
public int Id { get; init; }
26.47.5.1.1. Property Value
26.47.5.2. Permissions
User’s permissions
public IEnumerable<string> Permissions { get; init; }
26.47.5.2.1. Property Value
26.47.5.3. Roles
User’s roles
public IEnumerable<string> Roles { get; init; }
26.47.5.3.1. Property Value
26.47.5.4. Username
Username
public string Username { get; init; }
26.47.5.4.1. Property Value
26.47.6. Methods
26.47.6.1. ToUserAuthenticationResult()
Converts this MongoDB pipeline result into a UserAuthenticationResult
public UserAuthenticationResult ToUserAuthenticationResult()
26.47.6.1.1. Returns
UserAuthenticationResult from this object