21.124. 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>
21.124.1. Inheritance
21.124.2. Implements
21.124.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.124.4. Constructors
21.124.4.1. UserAuthenticationResult(string, string, IEnumerable<string>, IEnumerable<string>)
Object containing the authentication result from database
public UserAuthenticationResult(string Id, string Username, IEnumerable<string> Roles, IEnumerable<string> Permissions)
21.124.4.1.1. Parameters
Id string
User Id
Username string
User name
Roles IEnumerable<string>
User roles
Permissions IEnumerable<string>
User permissions
21.124.4.2. UserAuthenticationResult()
Creates an empty result
public UserAuthenticationResult()
21.124.5. Properties
21.124.5.1. Id
User Id
public string Id { get; init; }
21.124.5.1.1. Property Value
21.124.5.2. Permissions
User permissions
public IEnumerable<string> Permissions { get; init; }
21.124.5.2.1. Property Value
21.124.5.3. Roles
User roles
public IEnumerable<string> Roles { get; init; }
21.124.5.3.1. Property Value
21.124.5.4. Username
User name
public string Username { get; init; }