_config.py:51: DeprecationWarning: verify=<str> is deprecated. Use verify=ssl.create_default_context(cafile=...) or verify=ssl.create_default_context(capath=...) instead.
warnings.warn(message, DeprecationWarning)
For example in the following:
KEYCLOAK_ADMIN = KeycloakAdmin(
server_url=KEYCLOAK_URL,
username=KEYCLOAK_USER_ADMIN_USERNAME,
password=KEYCLOAK_USER_ADMIN_PASSWORD,
realm_name=KEYCLOAK_REALM,
client_id=KEYCLOAK_CLIENT_ID,
client_secret_key=KEYCLOAK_CLIENT_SECRET,
verify='nginx/ssl/cert.pem',
)
I think we should think of a new method for httpx as the ssl method does not work anymore how it's currently designed.
This warning gets raised by
|
self.async_s = httpx.AsyncClient(verify=verify, mounts=proxies, cert=cert) |
Also typing seems inconsistent here because the ConnectionManager excepts only a bool for the verify arg, while the KeycloakOpenID or KeycloakAdmin init might provide a str instead according to the typing.
_config.py:51: DeprecationWarning:
verify=<str>is deprecated. Useverify=ssl.create_default_context(cafile=...)orverify=ssl.create_default_context(capath=...)instead.warnings.warn(message, DeprecationWarning)
For example in the following:
I think we should think of a new method for httpx as the ssl method does not work anymore how it's currently designed.
This warning gets raised by
python-keycloak/src/keycloak/connection.py
Line 117 in fe0967c
Also typing seems inconsistent here because the ConnectionManager excepts only a bool for the verify arg, while the
KeycloakOpenIDorKeycloakAdmininit might provide a str instead according to the typing.