mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 18:17:12 +00:00
Expose mtls certificate config params in python and php configuration templates (#22229)
* Expose mtls config params in python template * Expose certFile and keyFile configuration items to support mtls in php generated client * Regenerate of examples
This commit is contained in:
@@ -165,6 +165,8 @@ class Configuration:
|
||||
:param retries: Number of retries for API requests.
|
||||
:param ca_cert_data: verify the peer using concatenated CA certificate data
|
||||
in PEM (str) or DER (bytes) format.
|
||||
:param cert_file: the path to a client certificate file, for mTLS.
|
||||
:param key_file: the path to a client key file, for mTLS.
|
||||
|
||||
:Example:
|
||||
|
||||
@@ -203,6 +205,8 @@ conf = openapi_client.Configuration(
|
||||
ssl_ca_cert: Optional[str]=None,
|
||||
retries: Optional[int] = None,
|
||||
ca_cert_data: Optional[Union[str, bytes]] = None,
|
||||
cert_file: Optional[str]=None,
|
||||
key_file: Optional[str]=None,
|
||||
*,
|
||||
debug: Optional[bool] = None,
|
||||
) -> None:
|
||||
@@ -284,10 +288,10 @@ conf = openapi_client.Configuration(
|
||||
"""Set this to verify the peer using PEM (str) or DER (bytes)
|
||||
certificate data.
|
||||
"""
|
||||
self.cert_file = None
|
||||
self.cert_file = cert_file
|
||||
"""client certificate file
|
||||
"""
|
||||
self.key_file = None
|
||||
self.key_file = key_file
|
||||
"""client key file
|
||||
"""
|
||||
self.assert_hostname = None
|
||||
|
||||
Reference in New Issue
Block a user