File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ def __init__( # noqa: C901
2525 hostname : str ,
2626 transport_options : Optional [TransportOptions ] = None ,
2727 ):
28+ """
29+ Initialize the OpenId configuration fetcher.
30+
31+ :param hostname: The Zitadel instance hostname or URL.
32+ :param transport_options: Optional transport options for TLS, proxy, and headers.
33+ """
2834 if transport_options is None :
2935 transport_options = TransportOptions .defaults ()
3036
Original file line number Diff line number Diff line change 55
66@dataclass (frozen = True )
77class TransportOptions :
8- """Immutable transport options for configuring HTTP connections."""
8+ """Immutable transport options for configuring HTTP connections.
9+
10+ :param default_headers: Additional HTTP headers to include in every request.
11+ :param ca_cert_path: Path to a custom CA certificate file for TLS verification.
12+ :param insecure: If True, disables TLS certificate verification.
13+ :param proxy_url: HTTP/HTTPS proxy URL to route requests through.
14+ """
915
1016 default_headers : Mapping [str , str ] = field (default_factory = dict )
1117 ca_cert_path : Optional [str ] = None
Original file line number Diff line number Diff line change @@ -187,6 +187,12 @@ def _apply_transport_options(
187187 config : Configuration ,
188188 transport_options : TransportOptions ,
189189 ) -> None :
190+ """
191+ Apply transport options to the SDK configuration.
192+
193+ :param config: The Configuration instance to modify.
194+ :param transport_options: Optional transport options for TLS, proxy, and headers.
195+ """
190196 config .default_headers = dict (transport_options .default_headers )
191197 if transport_options .ca_cert_path :
192198 config .ssl_ca_cert = transport_options .ca_cert_path
You can’t perform that action at this time.
0 commit comments