Class HttpTransportOptions

Assembly: redb.Identity.Http.dll

HTTP transport settings (ports, CORS).

public class HttpTransportOptions

Inheritance

Object→HttpTransportOptions

Properties

AdditionalAllowedOrigins

Comma-separated list of origins that should always be allowed in addition to those

public string? AdditionalAllowedOrigins { get; set; }

CorsEnabled

Master switch for CORS on browser-facing OIDC endpoints (/.well-known/*,

public bool CorsEnabled { get; set; }

CorsOrigins

Comma-separated allowed-origins list (legacy; pre-C15).

[Obsolete("Use AdditionalAllowedOrigins (CSV, properly matched) or CorsOriginsResolver. CorsOrigins is forwarded to AdditionalAllowedOrigins when set.")]
public string? CorsOrigins { get; set; }

CorsOriginsResolver

Optional fully-programmatic CORS origin resolver. When set, this delegate completely

public Func<HttpRequest, string?>? CorsOriginsResolver { get; set; }

CorsRegisteredClientOriginsEnabled

When true, the registered-client origin resolver is wired up so that any browser

public bool CorsRegisteredClientOriginsEnabled { get; set; }

FederationCallbackPath

Path for the OIDC federation callback endpoint.

public string FederationCallbackPath { get; set; }

Host

Bind address of the public and management listeners. Default 0.0.0.0 (every interface);

public string Host { get; set; }

ManagementPort

Optional separate port for management API (/api/v1/identity/*).

public int? ManagementPort { get; set; }

PublicPort

Port for public OIDC endpoints (/connect/, /.well-known/).

public int PublicPort { get; set; }

Ssl

Serve the HTTP facade over HTTPS/TLS natively (Kestrel, via the redb.Route.Http connector)

public bool Ssl { get; set; }

SslCertPassword

Password protecting the PFX in . null when the PFX has no

public string? SslCertPassword { get; set; }

SslCertPath

Filesystem path to the PFX (PKCS#12) certificate used when is true.

public string? SslCertPath { get; set; }