Skip to content

Abblix.Oidc.Server.Mvc Namespace

Classes
AutoPostFormatterOutput formatter that produces a self-submitting HTML form, used to deliver authorization-response parameters to a client redirect URI as POST body fields. Implements the OAuth 2.0 Form Post Response Mode (see https://openid.net/specs/oauth-v2-form-post-response-mode-1\_0.html\), where the user agent auto-submits the form on load via JavaScript and falls back to a manual submit button when scripting is disabled. Produces text/html (UTF-8); each public field/property of the response object becomes a hidden input.
HttpRequestExtensionsMVC-only Microsoft.AspNetCore.Http.HttpRequest extension that resolves an application-relative path to an absolute URI through the MVC IUriResolver. The framework-neutral URL helpers (GetAppUrl/GetBaseUrl) live in the shared Abblix.Oidc.Server.AspNetCore project.
MvcUtilsProvides utility methods for common MVC operations, including controller and action naming conventions, parameter validation, and model state error handling.
ParameterValidatorProvides functionality for validating parameters, emulating the behavior of ASP.NET MVC's System.ComponentModel.DataAnnotations.RequiredAttribute. This class implements the IParameterValidator interface to offer standard parameter validation routines, enabling its use in core application code where model binding and MVC validation attributes are not directly applicable.
PathContains constants for various OpenID Connect and OAuth2 endpoint paths. This class centralizes the paths used throughout the application for consistency and maintainability.
ServiceCollectionExtensionsExtension methods for adding OpenID Connect (OIDC) server services to the Microsoft.Extensions.DependencyInjection.IServiceCollection. These methods simplify the integration of OIDC server capabilities into an ASP.NET Core application, allowing for the configuration of OIDC options and services necessary for authentication and authorization.
UriResolverProvides functionality to generate absolute URIs for MVC actions and content within an ASP.NET Core application. This class utilizes ASP.NET Core's Microsoft.AspNetCore.Http.IHttpContextAccessor to access the current HTTP context and Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory to create URL helpers for generating URIs.
Interfaces
IUriResolverProvides functionality for generating URIs for controller actions and static content within an application.