HttpRequestInfoProvider Class
Supplies the core with information about the current HTTP request, reading it from the ambient Microsoft.AspNetCore.Http.HttpContext. Touches only ASP.NET Core's HTTP abstractions (no MVC, no Minimal API types), so it is shared by both transport adapters as the default IRequestInfoProvider.
public class HttpRequestInfoProvider : Abblix.Oidc.Server.Common.Interfaces.IRequestInfoProviderInheritance System.Object → HttpRequestInfoProvider
Implements IRequestInfoProvider
Constructors
HttpRequestInfoProvider(IHttpContextAccessor) Constructor
Supplies the core with information about the current HTTP request, reading it from the ambient Microsoft.AspNetCore.Http.HttpContext. Touches only ASP.NET Core's HTTP abstractions (no MVC, no Minimal API types), so it is shared by both transport adapters as the default IRequestInfoProvider.
public HttpRequestInfoProvider(Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);Parameters
httpContextAccessor Microsoft.AspNetCore.Http.IHttpContextAccessor
Properties
HttpRequestInfoProvider.ApplicationUri Property
The base URI of the application.
public string ApplicationUri { get; }Implements ApplicationUri
Property Value
HttpRequestInfoProvider.IsHttps Property
Indicates whether the request is using HTTPS.
public bool IsHttps { get; }Implements IsHttps
Property Value
HttpRequestInfoProvider.PathBase Property
The base path of the request.
public string PathBase { get; }Implements PathBase
Property Value
HttpRequestInfoProvider.RemoteIpAddress Property
The client's IP address from the current request. May be null if the IP address cannot be determined.
public System.Net.IPAddress? RemoteIpAddress { get; }Implements RemoteIpAddress
Property Value
HttpRequestInfoProvider.RequestMethod Property
The HTTP method of the current request (e.g. GET, POST) in upper case
per RFC 9110 §9. Surfaced for protocol-binding checks (e.g. RFC 9449 §4.3 DPoP
htm) that match the inbound method byte-exact rather than assuming a fixed
value per endpoint.
public string RequestMethod { get; }Implements RequestMethod
Property Value
HttpRequestInfoProvider.RequestUri Property
The request URI.
public string RequestUri { get; }Implements RequestUri