23.115. Class UserAuthenticationResult
Namespace: ArmoniK.Core.Common.Auth.Authentication
Assembly: ArmoniK.Core.Common.dll
Object containing the authentication result from database
public record UserAuthenticationResult : IEquatable<UserAuthenticationResult>
23.115.1. Inheritance
23.115.2. Implements
23.115.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
23.115.4. Constructors
23.115.4.1. UserAuthenticationResult(int, string, IEnumerable<string>, IEnumerable<string>)
Object containing the authentication result from database
public UserAuthenticationResult(int Id, string Username, IEnumerable<string> Roles, IEnumerable<string> Permissions)
23.115.4.1.1. Parameters
Id int
User Id
Username string
User name
Roles IEnumerable<string>
User roles
Permissions IEnumerable<string>
User permissions
23.115.4.2. UserAuthenticationResult()
Creates an empty result
public UserAuthenticationResult()
23.115.5. Properties
23.115.5.1. Id
User Id
public int Id { get; init; }
23.115.5.1.1. Property Value
23.115.5.2. Permissions
User permissions
public IEnumerable<string> Permissions { get; init; }
23.115.5.2.1. Property Value
23.115.5.3. Roles
User roles
public IEnumerable<string> Roles { get; init; }
23.115.5.3.1. Property Value
23.115.5.4. Username
User name
public string Username { get; init; }