We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you add auth_data when ZKClient instance like KazooClient(auth_data=auth_data)? Or that would work not good?
auth_data
KazooClient(auth_data=auth_data)
For example:
class MyZKClient(ZKClient): def __init__( self, servers, chroot=None, session_timeout=10, default_acl=None, retry_policy=None, allow_read_only=False, read_timeout=None, loop=None, auth_data=None, ): super().__init__(servers, chroot, session_timeout, default_acl, retry_policy, allow_read_only, read_timeout, loop) self.auth_data = auth_data async def send(self, request): try: return await super().send(request) except NoAuth: if self.auth_data: await super().send(self.auth_data) return await super().send(request) auth_data = AuthRequest(type=0, scheme='digest', auth=auth) MyZKClient(zk_hosts, auth_data=auth_data)
but, still has some NoAuth error when use TreeCache
NoAuth
TreeCache
zookeeper: 3.4.10
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Can you add
auth_data
when ZKClient instance likeKazooClient(auth_data=auth_data)
?Or that would work not good?
For example:
but, still has some
NoAuth
error when useTreeCache
zookeeper: 3.4.10
The text was updated successfully, but these errors were encountered: