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

## ServiceCollectionExtensions Class

DI extensions that opt the host into the OAuth 2\.0 `none` response type\.

```csharp
public static class ServiceCollectionExtensions
```

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

## ServiceCollectionExtensions\.EnableNoneFlow\(this IServiceCollection\) Method {#Abblix.Oidc.Server.Features.NoneFlow.ServiceCollectionExtensions.EnableNoneFlow(thisMicrosoft.Extensions.DependencyInjection.IServiceCollection)}

Enables the `none` response type \(OAuth 2\.0 Multiple Response Type Encoding Practices §4\),
which authorizes a request without returning any code or token — the authorization endpoint
responds with only `state` and, when advertised, `iss` \(RFC 9207\)\.

```csharp
public static Microsoft.Extensions.DependencyInjection.IServiceCollection EnableNoneFlow(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
```
#### Parameters

###### `services` [Microsoft\.Extensions\.DependencyInjection\.IServiceCollection](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection 'Microsoft\.Extensions\.DependencyInjection\.IServiceCollection') {#Abblix.Oidc.Server.Features.NoneFlow.ServiceCollectionExtensions.EnableNoneFlow(thisMicrosoft.Extensions.DependencyInjection.IServiceCollection).services}

The [Microsoft\.Extensions\.DependencyInjection\.IServiceCollection](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection 'Microsoft\.Extensions\.DependencyInjection\.IServiceCollection') to register the processor in\.

#### Returns
[Microsoft\.Extensions\.DependencyInjection\.IServiceCollection](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection 'Microsoft\.Extensions\.DependencyInjection\.IServiceCollection')  
The [Microsoft\.Extensions\.DependencyInjection\.IServiceCollection](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection 'Microsoft\.Extensions\.DependencyInjection\.IServiceCollection') so additional calls can be chained\.

### Remarks
By default this library does not register the `none` response\-type processor, so the
authorization endpoint rejects `response_type=none` with `unsupported_response_type`
and the discovery document omits `none` from `response_types_supported`\. Hosts that
need it — for example, to pre\-authorize a grant the client redeems later by other means — opt in
via this method, mirroring the `EnableImplicitFlow` precedent for non\-core response types\. A
client must additionally list `none` among its allowed response types to use it\.
