Authentication

Users must log in to sui.direct in order to perform read/write actions, like pushing your code in a repository.

You can log in to CLI with this command:

direct auth login

Then you will need to sign a message with the wallet you provide.

And if you want to log out,

direct auth logout

From a technical view, authentication for users is simple.

  1. CLI and Node handshakes, CLI sends its peer ID to Node

  2. CLI sends a nonce to Node

  3. User signs a signature, and CLI sends it to Node

  4. Node validates the signature with the nonce and peer ID

  5. Node generates a JWT token and sends it to the CLI

  6. CLI stores it in the ~/sui.direct/TOKEN file located in the home directory.

Authenticaion Sequence Diagram

To get started with how to log in to sui.direct CLI, follow the next tutorial.

Slush Wallet

Last updated