Cassandra-Client
view release on metacpan or search on metacpan
lib/Cassandra/Client/Connection.pm view on Meta::CPAN
], $callback);
return;
}
sub authenticate {
my ($self, $callback, $initial_challenge)= @_;
my $authenticator= unpack_string($initial_challenge);
if (!$self->{options}{authentication}) {
return $callback->("Server expected authentication using <$authenticator> but no credentials were set");
}
my $auth;
eval {
$auth= $self->{options}{authentication}->begin($authenticator);
1;
} or do {
my $error= "Failed to initialize authentication mechanism: $@";
return $callback->($error);
};
( run in 0.325 second using v1.01-cache-2.11-cpan-4d50c553e7e )