Skip to main content
Sign in and obtain a token

Body

application/json
identityToken
string

Key handed out by an external identity provider whose account could not be matched to anyone here. Send it alongside real credentials to attach that identity to the account you are signing in to. It is not a credential of its own and it stops working shortly after it is issued.

Example:

"c58b868cbba3cd8056ce6adb44d46a11a113170e884509c179701270b97da33e"

name
string | null

Username of the account, usually its e-mail address. Send it together with password.

Pattern: ^[A-Za-z0-9.@_+-]+$
Example:

"john.doe+member@example.com"

password
string

Password of the account. Send it together with name.

Example:

"SecurePassword123"

returnToken
boolean
default:true

Puts the token into the response body as well. It is set as a cookie either way.

Example:

true

tenant
string | null

Tenant to sign in to. Leave it out and the tenant is taken from the host the request arrived on, which is what a browser client relies on; name it only where that is not enough.

Pattern: ^[a-z0-9]+$
Example:

"default"

termsAccepted
boolean | null

Records that the person accepts the terms and conditions currently in force. Signing in does not require it, but once new terms take effect every other endpoint refuses the token until it has been sent.

Example:

true

token
string | null

A token you already hold, to have it revalidated and its account read back instead of signing in again. It cannot be combined with name or password, and a token still locked by multi-factor authentication is refused.

Pattern: ^[A-Za-z0-9._-]+$
Example:

"cir_a11b868cbba3c.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

Response

Signed in. Returns the account, everything it is allowed to do and the settings that apply to it, plus the token itself unless the request asked to keep it out of the body. A token still locked by multi-factor authentication comes back without those, with the outstanding factors listed instead.

authentication
object[]

Second factors still to be verified before the token can be used, each with the masked destination its code was just sent to. It is empty for an account without multi-factor authentication.

availableSealProviders
object[]

Seal providers the account can seal with, each of them configured completely. Only the identity of a provider is published, never its configuration. Empty when none is usable; when none is marked as the default, a seal has to name its provider. It is left out while the token is still locked.

availableTsaServers
object[]

Time Stamping Authority servers the user may request a timestamp from. Only the identity of a server is published, never its URL or its credentials. Empty when none is usable, in which case no server can be offered for selection.

created
string<date-time>

When the token was issued.

hasPassword
boolean

Whether the account has a password of its own. An account that signs in only through an external identity provider has none.

Example:

true

isUnlocked
boolean

Whether the token can be used. A token issued to an account with multi-factor authentication starts locked and unlocks once every factor in authentication is verified.

Example:

false

lastPasswordChange
string<date-time>

When the password was last changed. It is absent for an account whose password has never been changed, and it is what a password-expiry policy is measured from.

lastUsed
string<date-time>

When the token was last used to call the API.

logged
boolean

Whether the caller is signed in at all. Everything below it is present only when it is true.

Example:

true

rights
string[]

Everything the account is allowed to do, resolved from the groups it belongs to. It is left out while the token is still locked.

Example:
settings
object

Settings that apply to this account, merged from the tenant, its organization, its groups and the account itself. It is left out while the token is still locked.

tenant
string

Tenant the token belongs to.

Example:

"default"

token
string

Token to authenticate further calls with. It is put here only when the request asked for it.

Example:

"cir_a11b868cbba3c.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

user
object

The signed-in account itself. It is left out while the token is still locked.

validForMilliseconds
integer

How long the token may stay idle before it stops being usable, counted from when it was last used.

Example:

2592000000