22.51. 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>
22.51.1. Inheritance
22.51.2. Implements
22.51.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
22.51.4. Constructors
22.51.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)
22.51.4.1.1. Parameters
Id int
User Id
Username string
Username
Roles IEnumerable<string>
User’s roles
Permissions IEnumerable<string>
User’s permissions
22.51.5. Properties
22.51.5.1. Id
User Id
[BsonId]
public int Id { get; init; }
22.51.5.1.1. Property Value
22.51.5.2. Permissions
User’s permissions
public IEnumerable<string> Permissions { get; init; }
22.51.5.2.1. Property Value
22.51.5.3. Roles
User’s roles
public IEnumerable<string> Roles { get; init; }
22.51.5.3.1. Property Value
22.51.5.4. Username
Username
public string Username { get; init; }
22.51.5.4.1. Property Value
22.51.6. Methods
22.51.6.1. ToUserAuthenticationResult()
Converts this MongoDB pipeline result into a UserAuthenticationResult
public UserAuthenticationResult ToUserAuthenticationResult()
22.51.6.1.1. Returns
UserAuthenticationResult from this object