ClientIdGenerator Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.RandomGenerators
ClientIdGenerator Class
Implements the IClientIdGenerator interface to generate client IDs for OpenID Connect (OIDC) clients. The generated client IDs are based on cryptographically secure random bytes and are encoded in Base32 format, providing a URL-safe, human-readable identifier. The length and format of the generated client IDs can be configured through OIDC options.
public class ClientIdGenerator : Abblix.Oidc.Server.Features.RandomGenerators.IClientIdGenerator
Inheritance System.Object → ClientIdGenerator
Implements IClientIdGenerator
Constructors
ClientIdGenerator(IOptions<OidcOptions>) Constructor
Implements the IClientIdGenerator interface to generate client IDs for OpenID Connect (OIDC) clients. The generated client IDs are based on cryptographically secure random bytes and are encoded in Base32 format, providing a URL-safe, human-readable identifier. The length and format of the generated client IDs can be configured through OIDC options.
public ClientIdGenerator(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
Parameters
options Microsoft.Extensions.Options.IOptions<OidcOptions>
Methods
ClientIdGenerator.GenerateClientId() Method
Generates a new client ID for an OIDC client. The method produces a random, URL-safe, and human-readable identifier using Base32 encoding, based on the length specified in the OIDC options. This ensures that the generated client IDs are suitable for use in various contexts, including web URLs and user interfaces.
public string GenerateClientId();
Implements GenerateClientId()
Returns
System.String
A new, randomly generated client ID string that conforms to the specifications defined in the
OIDC options. The client ID is encoded in Base32 format to ensure URL safety and readability.