21.125. 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.125.1. Inheritance

objectUserAuthenticationResult

21.125.2. Implements

IEquatable<UserAuthenticationResult>

21.125.3. Inherited Members

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

21.125.4. Constructors

21.125.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.125.4.1.1. Parameters

Id string

User Id

Username string

User name

Roles IEnumerable<string>

User roles

Permissions IEnumerable<string>

User permissions

21.125.4.2. UserAuthenticationResult()

Creates an empty result

public UserAuthenticationResult()

21.125.5. Properties

21.125.5.1. Id

User Id

public string Id { get; init; }

21.125.5.1.1. Property Value

string

21.125.5.2. Permissions

User permissions

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

21.125.5.2.1. Property Value

IEnumerable<string>

21.125.5.3. Roles

User roles

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

21.125.5.3.1. Property Value

IEnumerable<string>

21.125.5.4. Username

User name

public string Username { get; init; }

21.125.5.4.1. Property Value

string