Authentication

Obtain JWT Authentication token for user.

Obtain a JWT Authentication for a user.

After obtaining the token, REST API calls may be invoked by passing the obtained token in the REST header. Either email or both tenant and username are required. Add the following to your header when you make REST calls: "Authorization: bearer TOKEN"

post/_open/auth

Request

Request body

emailstring

The email of the user for whom we want the auth token.

passwordstring required

The user password.

tenantstring

The name of the tenant for whose user we want the auth token.

usernamestring

The id of the user for whom we want the auth token.

Example request

{
  "email": "joe@foo.com",
  "password": "xxxxx",
  "tenant": "foo",
  "username": "joe"
}

Response

Successfully created token.

jwtstring

JWT authentication token.

tenantstring

Name of the tenant.

usernamestring

Username of the tenant.

Example response

{
  "jwt": "IsInR5cCI6IkpXVCJ9.pvaG4gRG9lIiwiaWF0IjoyfQ.SflKxwRJSMeV_adQssw5c",
  "tenant": "foo",
  "username": "joe"
}

Changes

No recorded changes to this operation across all 1 revision of this API.