tarantool / tarantool-python

Python client library for Tarantool
https://www.tarantool.io
BSD 2-Clause "Simplified" License
101 stars 46 forks source link

api: support authentication methods #273

Closed DifferentialOrange closed 1 year ago

DifferentialOrange commented 1 year ago

Merge after #274

Since Tarantool master 2574ff1a configuring authentication type is supported [1-2]. Together with this, Tarantool EE had introduced pap-sha256 authentication method support [3-4]. It can be used only together with SSL transport. To configure, use auth_type option in Connection, MeshConnection or ConnectionPool.

Newest master (there is no dev build in customer zone yet) supports providing authentication method via IPROTO_ID response. So in this patch we also move ID request to be executed before authentication.

  1. https://github.com/tarantool/tarantool/issues/7988
  2. https://github.com/tarantool/tarantool/issues/7989
  3. https://github.com/tarantool/tarantool-ee/issues/295
  4. https://github.com/tarantool/tarantool-ee/issues/322

Closes #269

DifferentialOrange commented 1 year ago

Thank you for the patch!

Thank you for the review! Can you also check this one #274 ?