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
apiNamestringThe API that asked.
clientIdstringThe client the token was issued to.
subjectIdstringThe user the token was issued for, or null for a
client_credentialstoken.
Properties
ApiName
The API that asked.
public string ApiName { get; }
Property Value
ClaimTypes
The types of the claims the token carries, each once. Duende's.
public IEnumerable<string>? ClaimTypes { get; set; }
Property Value
ClientId
The client the token was issued to.
public string? ClientId { get; }
Property Value
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
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
SubjectId
Null for a client_credentials token, where there is no user.
public string? SubjectId { get; }
Property Value
Token
The token's TokenFingerprint; set it to the token and it keeps only that.
public string? Token { get; set; }
Property Value
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; }