Table of Contents

Class JwtClaims

Namespace
Shard.Network.Auth
Assembly
Shard.Network.Auth.dll

Validated claims extracted from a token.

public sealed record JwtClaims : IEquatable<JwtClaims>
Inheritance
JwtClaims
Implements
Inherited Members

Properties

Audience

public string? Audience { get; init; }

Property Value

string

CertificateThumbprint

Certificate binding thumbprint (cnf."x5t#S256"), present on access tokens.

public string? CertificateThumbprint { get; init; }

Property Value

string

DisplayName

The best available display name: the top-level username, else the profile username.

public string? DisplayName { get; }

Property Value

string

ExpiresAt

public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

Issuer

public string? Issuer { get; init; }

Property Value

string

ProfileUsername

Nested "profile".username claim (present on identity tokens).

public string? ProfileUsername { get; init; }

Property Value

string

Scope

public string? Scope { get; init; }

Property Value

string

Subject

Subject (the player/session UUID).

public required string Subject { get; init; }

Property Value

string

Username

Top-level "username" claim (present on access tokens).

public string? Username { get; init; }

Property Value

string