21.123. 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.123.1. Inheritance
21.123.2. Implements
21.123.3. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.123.4. Constructors
21.123.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.123.4.1.1. Parameters
Id string
User Id
Username string
User name
Roles IEnumerable<string>
User roles
Permissions IEnumerable<string>
User permissions
21.123.4.2. UserAuthenticationResult()
Creates an empty result
public UserAuthenticationResult()
21.123.5. Properties
21.123.5.1. Id
User Id
public string Id { get; init; }
21.123.5.1.1. Property Value
21.123.5.2. Permissions
User permissions
public IEnumerable<string> Permissions { get; init; }
21.123.5.2.1. Property Value
21.123.5.3. Roles
User roles
public IEnumerable<string> Roles { get; init; }
21.123.5.3.1. Property Value
21.123.5.4. Username
User name
public string Username { get; init; }