createCliToken
POST/api/v1/auth/cli/token
On the tenant's host, with the access token of the person's
excubioctl login (cliLogin), the only operation that takes it:
checks it as every login the cloud takes is checked, and admits it
to the tenant as a web login (docs/architecture.md §12); creates
the person at their first login, syncs the memberships of the teams
with an IdP group, consumes a pending invitation as a first admin
and sets last_login_at, audited as a login, as
completeOidcLogin does. Then creates an API token of the person
as createApiToken does, without scopes, acting with the person's
roles, expiring at expires_at (default 30 days ahead, at most 90),
audited as a token's creation, listed and revoked as any. The
access token is not kept. No limit of its own applies: each call
needs a fresh access token of the issuer.
Request
Responses
- 201
- 403
The token value, shown once
person.inactive: the person is inactive and the login gave them no team (docs/on-call.md §1)