Harthelm Docs

A pending CLI sign-in, for the console's confirmation

What `hart login` asked for: the console's `/cli-login?code=<user code>` page shows it before the user approves. 404 when the code is unknown, expired, or already approved or denied.

Generated from openapi/harthelm.yaml at v1.5.0
GET
/me/cli-logins/{code}

Authorization

cookie__Host-harthelm_session<token>

Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header Harthelm-CSRF: 1 and a matching Origin.

Path Parameters

code*string

The user code hart login printed, e.g. BDFH-KMNP (case and the dash do not matter).

Length8 <= length <= 9

Response Body

The pending sign-in.

application/json
  1. response
user_code*string
mode*CliLoginMode
Value in"loopback""code"
name*string

The name the new API key will get.

hostname*string
os?string
cli_version?string
remote_addr?string

The address the sign-in was started from, as core saw it.

created_at*string
Formatdate-time
expires_at*string
Formatdate-time
curl -X GET 'https://console.example.com/api/v1/me/cli-logins/stringst'
{  "user_code": "string",  "mode": "loopback",  "name": "string",  "hostname": "string",  "os": "string",  "cli_version": "string",  "remote_addr": "string",  "created_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z"}