Table of Contents

Class TrinityUser

Namespace
AbanoubNassem.Trinity.Models
Assembly
AbanoubNassem.Trinity.dll

The logged-in Trinity user.

public record TrinityUser : IEquatable<TrinityUser>
Inheritance
TrinityUser
Implements
Inherited Members

Constructors

TrinityUser(string, string, string, string, string?, IEnumerable<Claim>?)

The TrinityUser that should be returned from AuthenticateUser.

public TrinityUser(string identifier, string name, string email, string role, string? avatar = null, IEnumerable<Claim>? extraClaims = null)

Parameters

identifier string

The identifier of the user.

name string

The name of the user.

email string

The email of the user.

role string

The role of the user.

avatar string

The avatar of the user, if any.

extraClaims IEnumerable<Claim>

Any extra claims to be added.

Properties

Avatar

The avatar of the user.

public string? Avatar { get; }

Property Value

string

Email

The email of the user.

public string Email { get; }

Property Value

string

ExtraClaims

Any extra claims.

[JsonIgnore]
public IEnumerable<Claim> ExtraClaims { get; }

Property Value

IEnumerable<Claim>

Identifier

The Identifier of the user.

public string Identifier { get; }

Property Value

string

Name

The name of the user.

public string Name { get; }

Property Value

string

Role

The role of the user.

public string Role { get; }

Property Value

string