Tenant
This section covers the data structures and types used by the persisted database entity, as well as the JSON input and output models used by the Configuration Dashboard API.
TenantEntity (Database Record)
tenant Database Table
| Field | Type | Description |
|---|---|---|
| id | String | Primary key of the database table. |
| tenant_id | String | Id used by the Configuration Dashboard. |
| name | String | Custom name of the Tenant. |
| app_id | String | Add the app- prefix to the value before using it as the App-Id HTTP header when sending requests to the Gateway. Alternatively, use the appId field from the TenantResource returned by the Dashboard API, which already includes the required prefix. |
| app_key | String | The value can not be used directly from the database because it is encrypted using the Tenant's encrypt_key. Instead, use the appKey field from the TenantResource returned by the Dashboard API as the App-Key HTTP header when sending requests to the Gateway. |
| encrypt_key | String | This key is automatically generated when a Tenant is created through the Configuration Dashboard. It is used by the system to encrypt and decrypt data belonging to that specific Tenant. Every Tenant has its own unique encrypt_key value. The Tenant encrypt_key is encrypted using the encryption key stored in the secret_key database table. This last key is itself encrypted using the ENCRYPTION_KEY environment variable, which is the only encryption key manually configured by you. |
| hash_key | String | This key is automatically generated when a Tenant is created through the Configuration Dashboard. It is used by the system to hash Tenant data that cannot be encrypted but still needs to be obfuscated, such as usernames stored in the tenant_user table.The hash_key is encrypted using the Tenant encrypt_key.Each Tenant has its own unique hash_key value.The hashing algorithm used is HMAC-SHA256. |
| saved_config | TenantConfig | The saved_config field contains a JSON object of type TenantConfig. It represents a draft configuration and is not the configuration currently used by the Gateway during HTTP request processing.Changes made to saved_config do not affect the Gateway behavior until the configuration is activated.The saved_config object can be updated and activated through the Configuration Dashboard API. |
| active_config | TenantConfig | The active_config field contains a JSON object of type TenantConfig. It represents the configuration currently used by the Gateway when processing HTTP requests. The active_config cannot be updated directly. To apply a new configuration, you must first update saved_config and then activate it using the Configuration Dashboard API.When the activation API is called, the content of saved_config is copied into active_config. From that moment on, the Gateway uses the new configuration for all incoming requests. |
| created | DateTime | UTC timestamp indicating when the Tenant was created. |
| updated | DateTime | UTC timestamp indicating the last time the Tenant was updated. |
TenantDto (Dashboard API Input)
{
"name": "name",
"config": { }, // See TenantConfig type
}| Field | Type | Required | Description |
|---|---|---|---|
| name | String | yes | Custom name of the Tenant. |
| config | TenantConfig | yes | The Tenant configuration stored in the database saved_config field. See the TenantEntity type for details. |
TenantResource (Dashboard API Output)
{
"tenantId": "0fa71be9-dbea-4f80-8eef-08a6182d223c",
"name": "tenant-test",
"appId": "app-001ce092-6265-4560-a446-053dbcf9d0f8",
"appKey": "key-UHMJfODRh9/N0n8SSd6Itbk0mu5MFznD1VmrJXqSk4Q=",
"savedConfig": { }, // See TenantConfig type
"activeConfig": { }, // See TenantConfig type
"created": "2026-07-30T11:47:32.991Z",
"updated": "2026-08-25T07:16:06.762Z",
"isActive": true
}| Field | Type | Description |
|---|---|---|
| tenantId | String | See the TenantEntity type for details. |
| name | String | See the TenantEntity type for details. |
| appId | String | Id that must be sent to the Gateway in the App-Id HTTP header with every request, in order to identify and retrieve the corresponding Tenant object from the database. |
| appKey | String | Key that must be sent to the Gateway in the App-Key HTTP header with every request, in order to authenticate the Tenant. |
| savedConfig | TenantConfig | See the TenantEntity type for details. |
| activeConfig | TenantConfig | See the TenantEntity type for details. |
| created | DateTime | See the TenantEntity type for details. |
| updated | DateTime | See the TenantEntity type for details. |
| isActive | Boolean | Indicates whether the saved_config matches the active_config, meaning that the Tenant configuration is currently active. |
TenantConfig
{
"auth": {
"type": "JWT",
"jwt": {
"strategy": "ACCESS_REFRESH",
"accessToken": {
"algorithm": "HMAC512",
"secretKeyBytesNumber": 64,
"secretKey": "signingKey",
"durationType": "MINUTES",
"durationValue": 15
},
"refreshToken": {
"enableRotation": true,
"algorithm": "HMAC512",
"secretKeyBytesNumber": 64,
"secretKey": "signingKey",
"durationType": "DAYS",
"durationValue": 60
},
"tokenRevocation": "ACCESS_REFRESH"
},
"passwordResetConfirm": {
"secretKey": "signingKey",
"expirySeconds": 600
},
"usernameUpdateConfirm": {
"secretKey": "signingKey",
"expirySeconds": 600
},
"mfaConfirm": {
"tokenDigitsNumber": 4,
"secretKey": "signingKey",
"expirySeconds": 600
},
},
"signup": {
"defaultAuthority": "USER",
"confirm": {
"secretKey": "signingKey",
"expirySeconds": 600
}
},
"rateLimits": {
"signupConfirmResend": true,
"passwordReset": true
}
}| Field | Type | Required | Description |
|---|---|---|---|
| auth | TenantAuth | yes | Authentication configuration of the Tenant. |
| signup | TenantSignup | yes | Account registration configuration of the Tenant. |
| rateLimits | TenantRateLimits | no | Configures rate limiting. If omitted, the defaults in the TenantRateLimits type apply. |
TenantAuth
| Field | Type | Required | Description |
|---|---|---|---|
| type | String | yes | The only allowed value is JWT. |
| jwt | TenantJWTConfig | yes | JWT configuration used by the tenant. |
| passwordResetConfirm | TenantConfirmation | yes | Contains the configuration of the confirmation token used during the password reset process. |
| usernameUpdateConfirm | TenantConfirmation | yes | Contains the configuration of the confirmation token used during the username update process. |
| mfaConfirm | TenantAuthMFA | yes | Contains the configuration of the token used during the MFA confirmation process. |
TenantJWTConfig
| Field | Type | Required | Description |
|---|---|---|---|
| strategy | String | yes | Allowed values: ACCESS, ACCESS_REFRESH.This value determines whether the authentication strategy uses only an access token or both an access token and a refresh token. |
| accessToken | TenantAccessToken | yes | Access token configuration. |
| refreshToken | TenantRefreshToken | Required if strategy is ACCESS_REFRESH | Refresh token configuration. |
| tokenRevocation | String | no | Allowed values: ACCESS, REFRESH, ACCESS_REFRESH.This field defines which token(s) should be revoked when a user logs out. If the strategy field is set to ACCESS, the only allowed value fortokenRevocation is ACCESS, because no refresh token exists to be revoked.If tokenRevocation is not set and a logout request is sent to the Gateway, the Gateway will not be able to complete the logout operation and will return an error. |
TenantAccessToken
| Field | Type | Required | Description |
|---|---|---|---|
| algorithm | String | yes | Allowed values: HMAC512, HMAC384, HMAC256. |
| secretKeyBytesNumber | Integer | yes | Defines the size, in bytes, of the secret key used to sign and verify the JWT. |
| secretKey | String | automatically generated | This value is encrypted using the Tenant encrypt_key.It is the key used to sign the token. |
| durationType | String | yes | Allowed values: MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS. |
| durationValue | Long | yes | Defines the duration amount using the unit specified by durationType. |
TenantRefreshToken
| Field | Type | Required | Description |
|---|---|---|---|
| algorithm | String | yes | Allowed values: HMAC512, HMAC384, HMAC256. |
| secretKeyBytesNumber | Integer | yes | Defines the size, in bytes, of the secret key used to sign and verify the JWT. |
| secretKey | String | automatically generated | This value is encrypted using the Tenant encrypt_key.It is the key used to sign the token. |
| durationType | String | yes | Allowed values: MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS. |
| durationValue | Long | yes | Defines the duration amount using the unit specified by durationType. |
| enableRotation | Boolean | yes | Defines whether refresh token rotation is enabled. When set to false, a refresh token request generates only a new access token.When set to true, a refresh token request generates both a new access token and a new refresh token. The previous refresh token is revoked and can no longer be used. |
TenantAuthMFA
| Field | Type | Required | Description |
|---|---|---|---|
| secretKey | String | automatically generated | This value is encrypted using the Tenant encrypt_key.It is the key used to sign the MFA token. |
| expirySeconds | Integer | yes | The validity duration of the MFA token. |
| TokenDigitsNumber | Integer | yes | Defines the number of digits of the MFA token. |
TenantSignup
| Field | Type | Required | Description |
|---|---|---|---|
| defaultAuthority | String | yes | Defines the authority (security role) automatically assigned to users created through the Gateway signup process. Example values include USER, STANDARD_USER, or any other custom value. |
| confirm | TenantConfirmation | yes | Contains the configuration of the confirmation token used during the account registration process. |
TenantConfirmation
| Field | Type | Required | Description |
|---|---|---|---|
| secretKey | String | automatically generated | This value is encrypted using the Tenant encrypt_key.It is the key used to sign the confirmation token. |
| expirySeconds | Integer | yes | The validity duration of the confirmation token. |
TenantRateLimits
| Field | Type | Required | Description |
|---|---|---|---|
| signupConfirmResend | Boolean | no | If set to true or omitted, a 60 seconds rate limit is applied. If set to false, no rate limit is applied. |
| passwordReset | Boolean | no | If set to true or omitted, a 60 seconds rate limit is applied. If set to false, no rate limit is applied. |
Updated about 1 month ago
Did this page help you?