Skip to content

Commit 6ae62d8

Browse files
committed
Support changing the SSL endpoint identification algorithm
1 parent b1a5a81 commit 6ae62d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

adc/auth.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class SASLAuth(object):
3838
ssl_ca_location : `str`, optional
3939
If using SSL via a self-signed cert, a path/location
4040
to the certificate.
41+
ssl_endpoint_identification_algorithm : `str`, optional
42+
If using SSL, the algorithm used to verify that certificate is valid for the endpoint.
4143
token_endpoint : `str`, optional
4244
The OpenID Connect token endpoint URL.
4345
Required for OAUTHBEARER / OpenID Connect, otherwise ignored.
@@ -63,6 +65,9 @@ def __init__(self, user, password, ssl=True, method=None, token_endpoint=None, *
6365
"security.protocol": "SASL_SSL",
6466
"ssl.ca.location": ssl_cert,
6567
}
68+
if "ssl_endpoint_identification_algorithm" in kwargs:
69+
self._config["ssl.endpoint.identification.algorithm"] = \
70+
kwargs["ssl_endpoint_identification_algorithm"]
6671
else:
6772
self._config = {"security.protocol": "SASL_PLAINTEXT"}
6873

0 commit comments

Comments
 (0)