Skip to main content

RegistrationAccessTokenStore Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.DynamicClientManagement

RegistrationAccessTokenStore Class

Default IRegistrationAccessTokenStore backed by the distributed IEntityStorage, so the client-to-token-jti binding is shared across all server replicas. The entry is stored without expiration — it lives as long as the client is registered — and is removed when the client is deregistered.

public class RegistrationAccessTokenStore : Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.IRegistrationAccessTokenStore

Inheritance System.Object → RegistrationAccessTokenStore

Implements IRegistrationAccessTokenStore

Constructors

RegistrationAccessTokenStore(IEntityStorage, IEntityStorageKeyFactory) Constructor

Default IRegistrationAccessTokenStore backed by the distributed IEntityStorage, so the client-to-token-jti binding is shared across all server replicas. The entry is stored without expiration — it lives as long as the client is registered — and is removed when the client is deregistered.

public RegistrationAccessTokenStore(Abblix.Oidc.Server.Features.Storages.IEntityStorage storage, Abblix.Oidc.Server.Features.Storages.IEntityStorageKeyFactory keyFactory);

Parameters

storage IEntityStorage

The distributed entity storage holding the bindings.

keyFactory IEntityStorageKeyFactory

The factory that builds the storage key for each client.

Methods

RegistrationAccessTokenStore.GetTokenIdAsync(string) Method

Retrieves the jti of the client's current registration access token.

public System.Threading.Tasks.Task<string?> GetTokenIdAsync(string clientId);

Parameters

clientId System.String

The identifier of the client.

Implements GetTokenIdAsync(string)

Returns

System.Threading.Tasks.Task<System.String>
The stored jti, or null when no binding is recorded (a statically configured client, or one registered before the binding existed) — in which case the validator does not enforce the binding.

RegistrationAccessTokenStore.RemoveAsync(string) Method

Removes the binding for a deregistered client.

public System.Threading.Tasks.Task RemoveAsync(string clientId);

Parameters

clientId System.String

The identifier of the client being removed.

Implements RemoveAsync(string)

Returns

System.Threading.Tasks.Task

RegistrationAccessTokenStore.SetTokenIdAsync(string, string) Method

Records tokenId as the jti of the client's current registration access token, replacing any previously stored value (which thereby becomes invalid).

public System.Threading.Tasks.Task SetTokenIdAsync(string clientId, string tokenId);

Parameters

clientId System.String

The identifier of the client the token manages.

tokenId System.String

The jti embedded in the newly issued registration access token.

Implements SetTokenIdAsync(string, string)

Returns

System.Threading.Tasks.Task