EndpointRouteBuilderExtensions Class
Maps the Abblix OpenID Connect server endpoints onto an ASP.NET Core Minimal API route builder.
public static class EndpointRouteBuilderExtensionsInheritance System.Object → EndpointRouteBuilderExtensions
Remarks
This is the Minimal API counterpart of the MVC integration's app.MapControllers(). Each endpoint is mapped
only when its OidcEndpoints flag is enabled in EnabledEndpoints, reproducing
the MVC behavior where a disabled endpoint is never registered and therefore returns 404.
Methods
EndpointRouteBuilderExtensions.MapOidcEndpoints(this IEndpointRouteBuilder, string) Method
Maps the enabled OpenID Connect and OAuth 2.0 endpoints onto the route builder and returns it so the host can continue configuring its own routes.
public static Microsoft.AspNetCore.Routing.RouteGroupBuilder MapOidcEndpoints(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string prefix="");Parameters
endpoints Microsoft.AspNetCore.Routing.IEndpointRouteBuilder
The endpoint route builder to map the endpoints onto.
prefix System.String
An optional route prefix to mount all OIDC endpoints under (default: none).
Returns
Microsoft.AspNetCore.Routing.RouteGroupBuilder
The Microsoft.AspNetCore.Routing.RouteGroupBuilder the OIDC endpoints were mapped onto, so the host can apply
cross-cutting conventions (rate limiting, host filtering, metadata) to all of them at once.