Enhance connect
Method to Support Authentication Parameters
#2
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
security
Overview:
This task aims to extend the
connect
method's functionality within the ScyllaDB driver to support authentication, following the Scylla Rust Driver documentation. The enhancement is crucial for applications requiring secure access to ScyllaDB clusters through authentication credentials.Detailed Behavior:
The proposed enhancement will modify the
connect
function to accept multiple types, allowing for an optional authentication object. The authentication object will containusername
andpassword
fields for ScyllaDB authentication. This change aims to offer flexibility for establishing authenticated sessions without altering the method's current behavior when authentication details are not provided.The method should support the following invocations:
Connecting with just the keyspace (current behavior):
Connecting with keyspace and an authentication object (new behavior):
Connecting with an options object that can contain keyspace and authentication details (new behavior):
Implementation Considerations:
connect
method and behave accordingly.connect
function proves problematic, the function should be transitioned to use the latter approach (option 3 above), and the initial approach (option 1) should be deprecated with clear communication to the users about this change.Assignees and Mentions:
Impact:
Progress/Updates:
The text was updated successfully, but these errors were encountered: