ServiceCollectionExtensions Class
Extension methods that register the Abblix OpenID Connect server for ASP.NET Core Minimal APIs.
public static class ServiceCollectionExtensionsInheritance System.Object → ServiceCollectionExtensions
Remarks
This is the Minimal API counterpart of the MVC integration's AddOidcServices/AddOidcMvc pair.
The two adapters share the framework-neutral core (AddOidcCore) and differ only in the transport layer:
where the MVC package registers controllers, this package maps route handlers through
MapOidcEndpoints(this IEndpointRouteBuilder, string).
Methods
ServiceCollectionExtensions.AddOidcMinimalApi(this IServiceCollection) Method
Adds the Minimal API transport services for the OpenID Connect server. Assumes the core services
(AddOidcCore) are registered separately. The counterpart of the MVC integration's
AddOidcMvc().
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOidcMinimalApi(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);Parameters
services Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection to add the services to.
Returns
Microsoft.Extensions.DependencyInjection.IServiceCollection
The same Microsoft.Extensions.DependencyInjection.IServiceCollection so calls can be chained.
ServiceCollectionExtensions.AddOidcServices(this IServiceCollection, Action<OidcOptions,IServiceProvider>) Method
Adds the OpenID Connect server (core plus the Minimal API transport) and configures its options with access to the service provider.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOidcServices(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<Abblix.Oidc.Server.Common.Configuration.OidcOptions,System.IServiceProvider> configureOptions);Parameters
services Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection to add the services to.
configureOptions System.Action<OidcOptions,System.IServiceProvider>
A delegate that configures the OidcOptions.
Returns
Microsoft.Extensions.DependencyInjection.IServiceCollection
The same Microsoft.Extensions.DependencyInjection.IServiceCollection so calls can be chained.
ServiceCollectionExtensions.AddOidcServices(this IServiceCollection, Action<OidcOptions>) Method
Adds the OpenID Connect server (core plus the Minimal API transport) and configures its options.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddOidcServices(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<Abblix.Oidc.Server.Common.Configuration.OidcOptions> configureOptions);Parameters
services Microsoft.Extensions.DependencyInjection.IServiceCollection
The service collection to add the services to.
configureOptions System.Action<OidcOptions>
A delegate that configures the OidcOptions.
Returns
Microsoft.Extensions.DependencyInjection.IServiceCollection
The same Microsoft.Extensions.DependencyInjection.IServiceCollection so calls can be chained.
Remarks
Named exactly as the MVC integration names it, so moving a host from one adapter to the other leaves this line alone: what changes is the package reference and the endpoint mapping, not the registration.