Client

Client Authentication

Login/logout for `ckc` and local session handling.

Client Authentication

Client auth is cookie-JWT based, with token stored locally in ~/.config/cookiefarm/session.

Login

ckc login -u <username> -P <password>

Example:

ckc config edit -H 127.0.0.1 -p 8080 -u team01
ckc login -u team01 -P SuperSecret

What it does:

  1. updates local config (client.yml)
  2. logs in through /api/v1/auth/login
  3. stores session token
  4. fetches shared config and writes shared.yml

Login flags are username/password; host/port are configured via ckc config edit.

Login Flow

Logout

ckc logout

Logout Flow

Removes local session file.

Show current config

ckc config show

Config Show

Common Errors

  • Login failed: wrong password or server unreachable.
  • shared configuration has changed: run login again (ckc login -u <user> -P <password>) to resync shared.yml.

How is this guide?

On this page