Select an active tenant

Set the active tenant for the user's current session

This endpoint allows you to get a new session token and refresh token with the dct claim on the JWT which shows the active selected tenant for the user.

See Tenant Selection Article for more details of the usage.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer <Project ID:Refresh JWT>

SecurityAuthProjectIdJwt
Request
Request Body schema: application/json
required
tenant
string
Responses
200

OK

post/v1/auth/tenant/select
Request samples
Response samples
application/json
{
  • "sessionJwt": "string",
  • "refreshJwt": "string",
  • "cookieDomain": "string",
  • "cookiePath": "string",
  • "cookieMaxAge": 0,
  • "cookieExpiration": 0,
  • "user": {
    },
  • "firstSeen": true,
  • "idpResponse": {
    }
}