Skip to main content

RegistrationAccessTokenService Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.DynamicClientManagement

RegistrationAccessTokenService Class

Issues registration access tokens for managing registered clients per RFC 7592 Section 3.

public class RegistrationAccessTokenService : Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.IRegistrationAccessTokenService

Inheritance System.Object → RegistrationAccessTokenService

Implements IRegistrationAccessTokenService

Constructors

RegistrationAccessTokenService(IAuthServiceJwtFormatter, IIssuerProvider) Constructor

Issues registration access tokens for managing registered clients per RFC 7592 Section 3.

public RegistrationAccessTokenService(Abblix.Oidc.Server.Features.Tokens.Formatters.IAuthServiceJwtFormatter serviceJwtFormatter, Abblix.Oidc.Server.Features.Issuer.IIssuerProvider issuerProvider);

Parameters

serviceJwtFormatter IAuthServiceJwtFormatter
issuerProvider IIssuerProvider

Methods

RegistrationAccessTokenService.IssueTokenAsync(string, DateTimeOffset, Nullable<TimeSpan>, string) Method

Issues a registration access token for a registered client.

public System.Threading.Tasks.Task<string> IssueTokenAsync(string clientId, System.DateTimeOffset issuedAt, System.Nullable<System.TimeSpan> expiresIn, string tokenId);

Parameters

clientId System.String

The unique identifier of the registered client.

issuedAt System.DateTimeOffset

The timestamp when the token is issued.

expiresIn System.Nullable<System.TimeSpan>

The optional duration after which the token expires.

tokenId System.String

The identifier (jti) embedded in the token and bound to the client.

Implements IssueTokenAsync(string, DateTimeOffset, Nullable<TimeSpan>, string)

Returns

System.Threading.Tasks.Task<System.String>
A task that results in the encoded registration access token.