Class TrinityUser
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
stringThe identifier of the user.
name
stringThe name of the user.
email
stringThe email of the user.
role
stringThe role of the user.
avatar
stringThe 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
The email of the user.
public string Email { get; }
Property Value
ExtraClaims
Any extra claims.
[JsonIgnore]
public IEnumerable<Claim> ExtraClaims { get; }
Property Value
Identifier
The Identifier of the user.
public string Identifier { get; }
Property Value
Name
The name of the user.
public string Name { get; }
Property Value
Role
The role of the user.
public string Role { get; }