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

## OptionsLicenseJwtProvider Class

An [ILicenseJwtProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider 'Abblix\.Oidc\.Server\.Features\.Licensing\.ILicenseJwtProvider') backed by the [LicenseJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions#Abblix.Oidc.Server.Common.Configuration.OidcOptions.LicenseJwt 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\.LicenseJwt') value
resolved through the options pattern\.

```csharp
public class OptionsLicenseJwtProvider : Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → OptionsLicenseJwtProvider

Implements [ILicenseJwtProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider 'Abblix\.Oidc\.Server\.Features\.Licensing\.ILicenseJwtProvider')

### Remarks
Returns a single\-element async sequence containing the configured license JWT, or null when no
license JWT has been configured\. Used as the default provider when the host configures the
license through standard configuration sources \(appsettings, environment variables, etc\.\)\.
### Constructors

## OptionsLicenseJwtProvider\(IOptions\<OidcOptions\>\) Constructor {#Abblix.Oidc.Server.Features.Licensing.OptionsLicenseJwtProvider.OptionsLicenseJwtProvider(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_)}

An [ILicenseJwtProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider 'Abblix\.Oidc\.Server\.Features\.Licensing\.ILicenseJwtProvider') backed by the [LicenseJwt](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions#Abblix.Oidc.Server.Common.Configuration.OidcOptions.LicenseJwt 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\.LicenseJwt') value
resolved through the options pattern\.

```csharp
public OptionsLicenseJwtProvider(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
```
#### Parameters

###### `options` [Microsoft\.Extensions\.Options\.IOptions&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptions-1 'Microsoft\.Extensions\.Options\.IOptions\`1')[OidcOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptions-1 'Microsoft\.Extensions\.Options\.IOptions\`1') {#Abblix.Oidc.Server.Features.Licensing.OptionsLicenseJwtProvider.OptionsLicenseJwtProvider(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_).options}

### Remarks
Returns a single\-element async sequence containing the configured license JWT, or null when no
license JWT has been configured\. Used as the default provider when the host configures the
license through standard configuration sources \(appsettings, environment variables, etc\.\)\.
### Methods

## OptionsLicenseJwtProvider\.GetLicenseJwtAsync\(\) Method {#Abblix.Oidc.Server.Features.Licensing.OptionsLicenseJwtProvider.GetLicenseJwtAsync()}

Asynchronously retrieves the license JWT from the OIDC service configuration\.

```csharp
public System.Collections.Generic.IAsyncEnumerable<string>? GetLicenseJwtAsync();
```

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

#### Returns
[System\.Collections\.Generic\.IAsyncEnumerable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1 'System\.Collections\.Generic\.IAsyncEnumerable\`1')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1 'System\.Collections\.Generic\.IAsyncEnumerable\`1')  
A task representing the asynchronous operation, which upon completion contains the license JWT used for
            validating the configuration and licensing terms of the OIDC service\.
