Skip to main content

ServiceCollectionExtensions Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.NoneFlow

ServiceCollectionExtensions Class

DI extensions that opt the host into the OAuth 2.0 none response type.

public static class ServiceCollectionExtensions

Inheritance System.Object → ServiceCollectionExtensions

Methods

ServiceCollectionExtensions.EnableNoneFlow(this IServiceCollection) Method

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).

public static Microsoft.Extensions.DependencyInjection.IServiceCollection EnableNoneFlow(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);

Parameters

services Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to register the processor in.

Returns

Microsoft.Extensions.DependencyInjection.IServiceCollection
The 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.