Table of Contents

Class TokenIntrospectionSuccessEvent

Namespace
Fdyay.IdentityServer.Events
Assembly
Fdyay.IdentityServer.Core.dll

An API asked about a token and was told what it is.

public class TokenIntrospectionSuccessEvent : Event
Inheritance
TokenIntrospectionSuccessEvent
Inherited Members

Constructors

TokenIntrospectionSuccessEvent(string, string?, string?)

A successful introspection.

public TokenIntrospectionSuccessEvent(string apiName, string? clientId, string? subjectId)

Parameters

apiName string

The API that asked.

clientId string

The client the token was issued to.

subjectId string

The user the token was issued for, or null for a client_credentials token.

Properties

ApiName

The API that asked.

public string ApiName { get; }

Property Value

string

ClaimTypes

The types of the claims the token carries, each once. Duende's.

public IEnumerable<string>? ClaimTypes { get; set; }

Property Value

IEnumerable<string>

ClientId

The client the token was issued to.

public string? ClientId { get; }

Property Value

string

ClientName

The display name of the client that asked, where a client rather than an API asked. Duende's.

public string? ClientName { get; set; }

Property Value

string

IsActive

Whether the token was active. Duende's; always true here, where an inactive answer is the failure event.

public bool IsActive { get; set; }

Property Value

bool

SubjectId

Null for a client_credentials token, where there is no user.

public string? SubjectId { get; }

Property Value

string

Token

The token's TokenFingerprint; set it to the token and it keeps only that.

public string? Token { get; set; }

Property Value

string

Remarks

Duende's member, which carries the token's last four characters.

TokenScopes

The scopes the token carries, before an API's answer is narrowed to its own. Duende's.

public IEnumerable<string>? TokenScopes { get; set; }

Property Value

IEnumerable<string>