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

## IAuthorizationCodeGenerator Interface

Defines a contract for generating unique authorization codes for use in OAuth 2\.0 authorization code flows\.
Implementations of this interface should ensure that the generated codes are cryptographically secure
and suitable for one\-time use in authenticating and authorizing access\.

```csharp
public interface IAuthorizationCodeGenerator
```

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

## IAuthorizationCodeGenerator\.GenerateAuthorizationCode\(\) Method {#Abblix.Oidc.Server.Features.RandomGenerators.IAuthorizationCodeGenerator.GenerateAuthorizationCode()}

Generates a unique, cryptographically secure authorization code\.

```csharp
string GenerateAuthorizationCode();
```

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')  
A string representing a unique authorization code\.
