IClientCredentialFactory Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces
IClientCredentialFactory Interface
Encapsulates client credential generation to maintain single responsibility and reduce constructor complexity. Separates credential-specific concerns (ID generation, secret generation, hashing, expiration) from the broader client registration process.
public interface IClientCredentialFactory
Derived
↳ ClientCredentialFactory
Methods
IClientCredentialFactory.Create(string, string) Method
Creates credentials with authentication-method-aware secret generation. Generates secrets only for methods requiring them (client_secret_basic, client_secret_post, client_secret_jwt), avoiding unnecessary secret generation for public clients or private_key_jwt authentication.
Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.ClientCredentials Create(string tokenEndpointAuthMethod, string? clientId=null);
Parameters
tokenEndpointAuthMethod System.String
Determines secret generation strategy based on OAuth 2.0 authentication method.
clientId System.String
Allows pre-registration scenarios where the client ID is externally provided.
Returns
ClientCredentials
Complete credential set including both transmission format (plain secret) and storage format (hash).