Skip to main content

IRegistrationAccessTokenService Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces

IRegistrationAccessTokenService Interface

Provides functionality to issue registration access tokens for managing registered clients. Per RFC 7592 Section 3, the registration access token is used to authenticate subsequent operations on the client configuration endpoint.

public interface IRegistrationAccessTokenService

Derived
RegistrationAccessTokenService

Methods

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

Issues a registration access token for a registered client.

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) to embed in the token. The caller records this value via the registration-access-token store so the validator can bind the token to the client: issuing with a fresh id invalidates earlier tokens, reusing the stored id keeps them valid (idempotent read).

Returns

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

Remarks

The registration access token is a bearer token that authenticates the client when performing read, update, or delete operations on its configuration.