Table of Contents

Class GatewayIdentity

Namespace
JD.AI.Core.Security
Assembly
JD.AI.Core.dll

Represents an authenticated identity (API key, OAuth token, etc.).

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

Constructors

GatewayIdentity(string, string, GatewayRole, DateTimeOffset)

Represents an authenticated identity (API key, OAuth token, etc.).

public GatewayIdentity(string Id, string DisplayName, GatewayRole Role, DateTimeOffset AuthenticatedAt)

Parameters

Id string
DisplayName string
Role GatewayRole
AuthenticatedAt DateTimeOffset

Properties

AuthenticatedAt

public DateTimeOffset AuthenticatedAt { get; init; }

Property Value

DateTimeOffset

Claims

public IReadOnlyDictionary<string, string> Claims { get; init; }

Property Value

IReadOnlyDictionary<string, string>

DisplayName

public string DisplayName { get; init; }

Property Value

string

Id

public string Id { get; init; }

Property Value

string

Role

public GatewayRole Role { get; init; }

Property Value

GatewayRole