Authentication

ldbc.connector.net.protocol.Authentication
See theAuthentication companion object
trait Authentication[F[_]]

Protocol to handle the Authentication Phase

Assume the client wants to log in via user account U and that user account is defined to use authentication method server_method. The fast authentication path is used when:

  • the server used server_method to generate authentication data in the Protocol::Handshake packet.
  • the client used a client_authentication_method in Protocol::HandshakeResponse: that is compatible with the server_method used by the server.

In that case the first round of authentication has been already commenced during the handshake. Now, depending on the authentication method server_method, further authentication can be exchanged until the server either accepts or refuses the authentication.

Type parameters

F

The effect type

Attributes

Companion
object
Source
Authentication.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Protocol[F]

Members list

Value members

Abstract methods

def changeUser(user: String, password: String): F[Unit]

Change the user.

Change the user.

Value parameters

password

Password

user

Username

Attributes

Source
Authentication.scala
def startAuthentication(username: String, password: String): F[Unit]

Start the authentication process.

Start the authentication process.

Value parameters

password

Password

username

Username

Attributes

Source
Authentication.scala