#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.DeviceAuthorization\.Interfaces](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.DeviceAuthorization.Interfaces 'Abblix\.Oidc\.Server\.Features\.DeviceAuthorization\.Interfaces')

## IDeviceCodeGenerator Interface

Defines the contract for generating device codes used in the Device Authorization Grant \(RFC 8628\)\.

```csharp
public interface IDeviceCodeGenerator
```

Derived  
↳ [DeviceCodeGenerator](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.DeviceAuthorization.DeviceCodeGenerator 'Abblix\.Oidc\.Server\.Features\.DeviceAuthorization\.DeviceCodeGenerator')
### Methods

## IDeviceCodeGenerator\.GenerateDeviceCode\(\) Method {#Abblix.Oidc.Server.Features.DeviceAuthorization.Interfaces.IDeviceCodeGenerator.GenerateDeviceCode()}

Generates a high\-entropy device code that the client uses to poll the token endpoint\.

```csharp
string GenerateDeviceCode();
```

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')  
A cryptographically secure, URL\-safe device code\.
