Sovite.SASL.Login (sovite v0.2.0)

Copy Markdown View Source

The LOGIN mechanism (draft-murchison-sasl-login): the server asks for Username: then Password:. Obsolete, but some clients (older Outlook versions) offer nothing else. Only safe over TLS.

An initial response is taken as the user name, as some clients send it.

Summary

Functions

Starts the client side. Sends no initial response.

Answers Username:, then Password:, whatever the prompts say.

Functions

client_start(credentials)

@spec client_start(%{username: String.t(), password: String.t()}) ::
  {:ok, nil, term()}

Starts the client side. Sends no initial response.

client_step(arg, challenge)

@spec client_step(term(), binary()) :: {:ok, binary(), term()}

Answers Username:, then Password:, whatever the prompts say.