26.120. 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>

26.120.1. Inheritance

objectUserAuthenticationResult

26.120.2. Implements

IEquatable<UserAuthenticationResult>

26.120.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

26.120.4. Constructors

26.120.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)

26.120.4.1.1. Parameters

Id int

User Id

Username string

User name

Roles IEnumerable<string>

User roles

Permissions IEnumerable<string>

User permissions

26.120.4.2. UserAuthenticationResult()

Creates an empty result

public UserAuthenticationResult()

26.120.5. Properties

26.120.5.1. Id

User Id

public int Id { get; init; }

26.120.5.1.1. Property Value

int

26.120.5.2. Permissions

User permissions

public IEnumerable<string> Permissions { get; init; }

26.120.5.2.1. Property Value

IEnumerable<string>

26.120.5.3. Roles

User roles

public IEnumerable<string> Roles { get; init; }

26.120.5.3.1. Property Value

IEnumerable<string>

26.120.5.4. Username

User name

public string Username { get; init; }

26.120.5.4.1. Property Value

string