prorm login — with the state and confirmCode theconsole_only) or an assumed identityassumed_identity) cannot open one.kind: interactive (the default) — a signed-in CLI.kind: device — a trusted machine, a lasting credential: needs astepUp: { totp } (or { password } from a browser on an accountkind: service — a session standing for one resource: a databaseresource: { kind: database, id }, with role and scope, whichaccess:write on it) or aresource: { kind: transfer-job, id }; needsresource:operate). Needs sealPub and sealBinding. Never admin.409 session_limit lists them.sealPub and sealBinding are required for every kind.curl --location 'https://api.prod-orm.io/security/klock/sessions' \
--header 'Content-Type: application/json' \
--data '{
"kind": "interactive",
"devicePub": "string",
"sealPub": "string",
"sealBinding": "string",
"hostname": "string",
"platform": "string",
"label": "string",
"teamUuid": "string",
"state": "string",
"confirmCode": "string",
"stepUp": {
"totp": "string",
"password": "pa$$word"
},
"resource": {
"kind": "database",
"id": 0
},
"thumbprint": "string",
"signPub": "string",
"role": "string",
"scope": {
"ops": [
"read"
],
"tables": [
"string"
]
},
"entId": "string",
"expiresAt": "2019-08-24T14:15:22.123Z",
"rotateBy": 0,
"rotateEverySec": 3600,
"compat": "v1"
}'{
"id": 0,
"sessionId": "ks_4f9c0d8e-2a61-4b1f-9c3d-7e5a2b1c0d9e",
"kind": "interactive",
"grant": "string",
"grantSeq": 0,
"deviceId": "string",
"deviceCert": "string",
"keyset": "string",
"keysetSeq": 0,
"tier": "string",
"caps": [
"string"
],
"dormant": [
"string"
],
"limits": {},
"checkInBy": 0,
"exp": 0,
"expiresAt": "2019-08-24T14:15:22.123Z",
"resource": {},
"rotateBy": "2019-08-24T14:15:22.123Z",
"passwordless": {},
"job": {},
"secret": "string",
"secretSeenOnce": true
}