def on_auth(self, f, connection, address):
if f.is_success():<EOL><INDENT>self.logger.info("<STR_LIT>", f.result(), extra=self._logger_extras)<EOL>with self._new_connection_mutex:<EOL><INDENT>self.connections[connection.endpoint] = f.result()<EOL>try:<EOL><INDENT>self._pending_connections.pop(address)<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>for on_connection_opened, _ in self._connection_listeners:<EOL><INDENT>if on_connection_opened:<EOL><INDENT>on_connection_opened(f.result())<EOL><DEDENT><DEDENT>return f.result()<EOL><DEDENT>else:<EOL><INDENT>self.logger.debug("<STR_LIT>", connection, extra=self._logger_extras)<EOL>with self._new_connection_mutex:<EOL><INDENT>try:<EOL><INDENT>self._pending_connections.pop(address)<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>six.reraise(f.exception().__class__, f.exception(), f.traceback())<EOL><DEDENT>
Checks for authentication of a connection.

:param f: (:class:`~hazelcast.future.Future`), future that contains the result of authentication.
:param connection: (:class:`~hazelcast.connection.Connection`), newly established connection.
:param address: (:class:`~hazelcast.core.Address`), the adress of new connection.
:return: Result of authentication.