Class GatewayConnectOptions
Settings for GatewayClient.
public sealed record GatewayConnectOptions : IEquatable<GatewayConnectOptions>
- Inheritance
-
GatewayConnectOptions
- Implements
- Inherited Members
Properties
Auth
Replaces the authentication derived from the gateway's auth_mode.
public IAuthProvider? Auth { get; init; }
Property Value
AutoRefresh
Renew an expired OIDC access token through the stored refresh token. Default true.
public bool AutoRefresh { get; init; }
Property Value
DefaultTimeout
Per-call deadline for unary calls.
public TimeSpan? DefaultTimeout { get; init; }
Property Value
DefaultWorkspace
Workspace used when none is given; defaults to default.
public string? DefaultWorkspace { get; init; }
Property Value
EdgeTunnel
How to reach a Cloudflare Access gateway. Auto (the default) routes gRPC through a local WebSocket tunnel, because the edge authenticates only GET requests.
public EdgeTunnelMode EdgeTunnel { get; init; }
Property Value
EdgeTunnelOptions
Settings for the edge tunnel when one is started.
public EdgeTunnelOptions? EdgeTunnelOptions { get; init; }
Property Value
HttpHandler
Replaces the HTTP handler (tests, custom proxies).
public HttpMessageHandler? HttpHandler { get; init; }
Property Value
Locator
Locates registrations; defaults to the OS layout.
public GatewayLocator? Locator { get; init; }
Property Value
LoggerFactory
Optional logger factory.
public ILoggerFactory? LoggerFactory { get; init; }
Property Value
OidcHttpClient
HTTP client for OIDC discovery and refresh (must not follow redirects).
public HttpClient? OidcHttpClient { get; init; }
Property Value
TimeProvider
Clock for token expiry.
public TimeProvider? TimeProvider { get; init; }
Property Value
Tls
Replaces the TLS settings derived from the gateway's mtls directory.
public TlsOptions? Tls { get; init; }
Property Value
WriteBack
Persist renewed tokens back to oidc_token.json so the CLI sees rotation. Default true.
public bool WriteBack { get; init; }