GrantIdGenerator Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.RandomGenerators
GrantIdGenerator Class
Default IGrantIdGenerator implementation. Draws random bytes from a cryptographically
secure source (System.Security.Cryptography.RandomNumberGenerator via CryptoRandom)
using the byte count configured in GrantIdLength, then URL-safe Base64 encodes
the result so the resulting grant_id value can travel safely through HTTP transports.
public class GrantIdGenerator : Abblix.Oidc.Server.Features.RandomGenerators.IGrantIdGenerator
Inheritance System.Object → GrantIdGenerator
Implements IGrantIdGenerator
Constructors
GrantIdGenerator(IOptions<OidcOptions>) Constructor
Default IGrantIdGenerator implementation. Draws random bytes from a cryptographically
secure source (System.Security.Cryptography.RandomNumberGenerator via CryptoRandom)
using the byte count configured in GrantIdLength, then URL-safe Base64 encodes
the result so the resulting grant_id value can travel safely through HTTP transports.
public GrantIdGenerator(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
Parameters
options Microsoft.Extensions.Options.IOptions<OidcOptions>
Methods
GrantIdGenerator.GenerateGrantId() Method
Produces a new grant_id value from cryptographically secure random bytes, sized per
GrantIdLength and URL-safe Base64 encoded.
public string GenerateGrantId();
Implements GenerateGrantId()
Returns
System.String
A URL-safe, randomly generated unique identifier for a refresh-token grant lineage.