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

## ServiceCollectionExtensions Class

DI extensions that opt the host into the OAuth 2\.0 / OIDC Implicit and Hybrid Flows\.

```csharp
public static class ServiceCollectionExtensions
```

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

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

Enables support for the Implicit and Hybrid Flows by registering the response\-type
processors that emit access tokens and ID tokens directly from the authorization endpoint\.

```csharp
public static Microsoft.Extensions.DependencyInjection.IServiceCollection EnableImplicitFlow(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.ImplicitFlow.ServiceCollectionExtensions.EnableImplicitFlow(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 Implicit /
            Hybrid response\-type processors 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
OAuth 2\.1 \(draft\) deprecates the Implicit Grant\. By default this library does not register
the `token` or `id_token` response\-type processors, so the authorization endpoint
rejects requests for those response types with `unsupported_response_type` and the
discovery document advertises only `code` in `response_types_supported` and
omits `implicit` from `grant_types_supported`\. Hosts that still need Implicit
or Hybrid \(legacy SPAs, transition deployments\) make a deliberate decision to opt in via
this method, mirroring the `EnablePasswordGrant` precedent for ROPC\.
