Skip to content

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.

C#
public class HttpRequestInfoProvider : Abblix.Oidc.Server.Common.Interfaces.IRequestInfoProvider

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

C#
public HttpRequestInfoProvider(Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);

Parameters

httpContextAccessor Microsoft.AspNetCore.Http.IHttpContextAccessor

Properties

HttpRequestInfoProvider.ApplicationUri Property

The base URI of the application.

C#
public string ApplicationUri { get; }

Implements ApplicationUri

Property Value

System.String

HttpRequestInfoProvider.IsHttps Property

Indicates whether the request is using HTTPS.

C#
public bool IsHttps { get; }

Implements IsHttps

Property Value

System.Boolean

HttpRequestInfoProvider.PathBase Property

The base path of the request.

C#
public string PathBase { get; }

Implements PathBase

Property Value

System.String

HttpRequestInfoProvider.RemoteIpAddress Property

The client's IP address from the current request. May be null if the IP address cannot be determined.

C#
public System.Net.IPAddress? RemoteIpAddress { get; }

Implements RemoteIpAddress

Property Value

System.Net.IPAddress

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.

C#
public string RequestMethod { get; }

Implements RequestMethod

Property Value

System.String

HttpRequestInfoProvider.RequestUri Property

The request URI.

C#
public string RequestUri { get; }

Implements RequestUri

Property Value

System.String