DeviceCodeGenerator Class
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.DeviceAuthorization
DeviceCodeGenerator Class
Generates high-entropy device codes for the Device Authorization Grant (RFC 8628). The device code is used by clients to poll the token endpoint.
public class DeviceCodeGenerator : Abblix.Oidc.Server.Features.DeviceAuthorization.Interfaces.IDeviceCodeGenerator
Inheritance System.Object → DeviceCodeGenerator
Implements IDeviceCodeGenerator
Constructors
DeviceCodeGenerator(IOptions<OidcOptions>) Constructor
Generates high-entropy device codes for the Device Authorization Grant (RFC 8628). The device code is used by clients to poll the token endpoint.
public DeviceCodeGenerator(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
Parameters
options Microsoft.Extensions.Options.IOptions<OidcOptions>
Configuration options containing device code length settings.
Methods
DeviceCodeGenerator.GenerateDeviceCode() Method
Generates a high-entropy device code that the client uses to poll the token endpoint.
public string GenerateDeviceCode();
Implements GenerateDeviceCode()
Returns
System.String
A cryptographically secure, URL-safe device code.