diff --git a/v2/emailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/emailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx index 456f4114b..311fc56d8 100644 --- a/v2/emailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/emailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -309,6 +309,10 @@ else: + + + + ```bash curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ @@ -323,6 +327,28 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multite }' ``` + + + + +```bash +curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "tenantId": "customer1", + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + } +}' +``` + + + + + @@ -485,20 +511,58 @@ else: + + + + ```bash curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' ``` - +Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). + +If the input tenant does not exist, you will get back a `200` status code with the following JSON: + +```json +{"status": "TENANT_NOT_FOUND_ERROR"} +``` + +Otherwise you will get a `200` status code with the following JSON output: + +```json +{ + "status": "OK", + "thirdParty": { + "providers": [...] + }, + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + }, + "tenantId": "customer1", + "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone", "link-email", "link-phone"] +} +``` + + + + + +```bash +curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' +``` Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). If the input tenant does not exist, you will get back a `200` status code with the following JSON: ```json -{status: "TENANT_NOT_FOUND_ERROR"} +{"status": "TENANT_NOT_FOUND_ERROR"} ``` Otherwise you will get a `200` status code with the following JSON output: @@ -506,19 +570,32 @@ Otherwise you will get a `200` status code with the following JSON output: ```json { "status": "OK", + "emailPassword": { + "enabled": true + }, "thirdParty": { + "enabled": true, "providers": [...] }, + "passwordless": { + "enabled": true + }, "coreConfig": { "email_verification_token_lifetime": 7200000, "password_reset_token_lifetime": 3600000, "postgresql_connection_uri": "postgresql://localhost:5432/db2" }, "tenantId": "customer1", - "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone"], } ``` + + + + + + + diff --git a/v2/multitenancy/new-tenant.mdx b/v2/multitenancy/new-tenant.mdx index e08a5c07c..3af5dbd30 100644 --- a/v2/multitenancy/new-tenant.mdx +++ b/v2/multitenancy/new-tenant.mdx @@ -173,7 +173,7 @@ The built-in Factor IDs that can be used for `firstFactors` are: ```bash -curl --location --request PUT '^{coreInjector_uri_without_quotes}/appid-/recipe/multitenancy/tenant/v2' \ +curl --location --request PUT '^{coreInjector_uri_without_quotes}/appid-/recipe/multitenancy/tenant' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' \ --data-raw '{ @@ -327,6 +327,10 @@ else: + + + + ```bash curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ @@ -341,6 +345,28 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multite }' ``` + + + + +```bash +curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "tenantId": "customer1", + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + } +}' +``` + + + + + @@ -503,20 +529,58 @@ else: + + + + ```bash curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' ``` - +Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). + +If the input tenant does not exist, you will get back a `200` status code with the following JSON: + +```json +{"status": "TENANT_NOT_FOUND_ERROR"} +``` + +Otherwise you will get a `200` status code with the following JSON output: + +```json +{ + "status": "OK", + "thirdParty": { + "providers": [...] + }, + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + }, + "tenantId": "customer1", + "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone", "link-email", "link-phone"] +} +``` + + + + + +```bash +curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' +``` Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). If the input tenant does not exist, you will get back a `200` status code with the following JSON: ```json -{status: "TENANT_NOT_FOUND_ERROR"} +{"status": "TENANT_NOT_FOUND_ERROR"} ``` Otherwise you will get a `200` status code with the following JSON output: @@ -524,19 +588,32 @@ Otherwise you will get a `200` status code with the following JSON output: ```json { "status": "OK", + "emailPassword": { + "enabled": true + }, "thirdParty": { + "enabled": true, "providers": [...] }, + "passwordless": { + "enabled": true + }, "coreConfig": { "email_verification_token_lifetime": 7200000, "password_reset_token_lifetime": 3600000, "postgresql_connection_uri": "postgresql://localhost:5432/db2" }, "tenantId": "customer1", - "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone"], } ``` + + + + + + + diff --git a/v2/passwordless/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/passwordless/common-customizations/multi-tenancy/new-tenant-config.mdx index 29cdfe007..0bbbfb101 100644 --- a/v2/passwordless/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/passwordless/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -326,6 +326,10 @@ else: + + + + ```bash curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ @@ -340,6 +344,28 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multite }' ``` + + + + +```bash +curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "tenantId": "customer1", + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + } +}' +``` + + + + + @@ -502,20 +528,58 @@ else: + + + + ```bash curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' ``` - +Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). + +If the input tenant does not exist, you will get back a `200` status code with the following JSON: + +```json +{"status": "TENANT_NOT_FOUND_ERROR"} +``` + +Otherwise you will get a `200` status code with the following JSON output: + +```json +{ + "status": "OK", + "thirdParty": { + "providers": [...] + }, + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + }, + "tenantId": "customer1", + "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone", "link-email", "link-phone"] +} +``` + + + + + +```bash +curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' +``` Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). If the input tenant does not exist, you will get back a `200` status code with the following JSON: ```json -{status: "TENANT_NOT_FOUND_ERROR"} +{"status": "TENANT_NOT_FOUND_ERROR"} ``` Otherwise you will get a `200` status code with the following JSON output: @@ -523,19 +587,32 @@ Otherwise you will get a `200` status code with the following JSON output: ```json { "status": "OK", + "emailPassword": { + "enabled": true + }, "thirdParty": { + "enabled": true, "providers": [...] }, + "passwordless": { + "enabled": true + }, "coreConfig": { "email_verification_token_lifetime": 7200000, "password_reset_token_lifetime": 3600000, "postgresql_connection_uri": "postgresql://localhost:5432/db2" }, "tenantId": "customer1", - "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone"], } ``` + + + + + + + diff --git a/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx index 611a5aa6e..593602ddf 100644 --- a/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdparty/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -477,6 +477,10 @@ else: + + + + ```bash curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ @@ -491,6 +495,28 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multite }' ``` + + + + +```bash +curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "tenantId": "customer1", + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + } +}' +``` + + + + + @@ -653,20 +679,58 @@ else: + + + + ```bash curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' ``` - +Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). + +If the input tenant does not exist, you will get back a `200` status code with the following JSON: + +```json +{"status": "TENANT_NOT_FOUND_ERROR"} +``` + +Otherwise you will get a `200` status code with the following JSON output: + +```json +{ + "status": "OK", + "thirdParty": { + "providers": [...] + }, + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + }, + "tenantId": "customer1", + "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone", "link-email", "link-phone"] +} +``` + + + + + +```bash +curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' +``` Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). If the input tenant does not exist, you will get back a `200` status code with the following JSON: ```json -{status: "TENANT_NOT_FOUND_ERROR"} +{"status": "TENANT_NOT_FOUND_ERROR"} ``` Otherwise you will get a `200` status code with the following JSON output: @@ -674,19 +738,32 @@ Otherwise you will get a `200` status code with the following JSON output: ```json { "status": "OK", + "emailPassword": { + "enabled": true + }, "thirdParty": { + "enabled": true, "providers": [...] }, + "passwordless": { + "enabled": true + }, "coreConfig": { "email_verification_token_lifetime": 7200000, "password_reset_token_lifetime": 3600000, "postgresql_connection_uri": "postgresql://localhost:5432/db2" }, "tenantId": "customer1", - "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone"], } ``` + + + + + + + diff --git a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx index 2fa7f0451..46b5199af 100644 --- a/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdpartyemailpassword/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -492,6 +492,10 @@ else: + + + + ```bash curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ @@ -506,6 +510,28 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multite }' ``` + + + + +```bash +curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "tenantId": "customer1", + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + } +}' +``` + + + + + @@ -668,20 +694,58 @@ else: + + + + ```bash curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' ``` - +Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). + +If the input tenant does not exist, you will get back a `200` status code with the following JSON: + +```json +{"status": "TENANT_NOT_FOUND_ERROR"} +``` + +Otherwise you will get a `200` status code with the following JSON output: + +```json +{ + "status": "OK", + "thirdParty": { + "providers": [...] + }, + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + }, + "tenantId": "customer1", + "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone", "link-email", "link-phone"] +} +``` + + + + + +```bash +curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' +``` Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). If the input tenant does not exist, you will get back a `200` status code with the following JSON: ```json -{status: "TENANT_NOT_FOUND_ERROR"} +{"status": "TENANT_NOT_FOUND_ERROR"} ``` Otherwise you will get a `200` status code with the following JSON output: @@ -689,19 +753,32 @@ Otherwise you will get a `200` status code with the following JSON output: ```json { "status": "OK", + "emailPassword": { + "enabled": true + }, "thirdParty": { + "enabled": true, "providers": [...] }, + "passwordless": { + "enabled": true + }, "coreConfig": { "email_verification_token_lifetime": 7200000, "password_reset_token_lifetime": 3600000, "postgresql_connection_uri": "postgresql://localhost:5432/db2" }, "tenantId": "customer1", - "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone"], } ``` + + + + + + + diff --git a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx index 96be3d599..73084ebcb 100644 --- a/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx +++ b/v2/thirdpartypasswordless/common-customizations/multi-tenancy/new-tenant-config.mdx @@ -501,6 +501,10 @@ else: + + + + ```bash curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ @@ -515,6 +519,28 @@ curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multite }' ``` + + + + +```bash +curl --location --request PUT '^{coreInjector_uri_without_quotes}/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "tenantId": "customer1", + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + } +}' +``` + + + + + @@ -677,20 +703,58 @@ else: + + + + ```bash curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant/v2' \ --header 'api-key: ^{coreInjector_api_key_without_quotes}' \ --header 'Content-Type: application/json' ``` - +Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). + +If the input tenant does not exist, you will get back a `200` status code with the following JSON: + +```json +{"status": "TENANT_NOT_FOUND_ERROR"} +``` + +Otherwise you will get a `200` status code with the following JSON output: + +```json +{ + "status": "OK", + "thirdParty": { + "providers": [...] + }, + "coreConfig": { + "email_verification_token_lifetime": 7200000, + "password_reset_token_lifetime": 3600000, + "postgresql_connection_uri": "postgresql://localhost:5432/db2" + }, + "tenantId": "customer1", + "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone", "link-email", "link-phone"] +} +``` + + + + + +```bash +curl --location --request GET '^{coreInjector_uri_without_quotes}/customer1/recipe/multitenancy/tenant' \ +--header 'api-key: ^{coreInjector_api_key_without_quotes}' \ +--header 'Content-Type: application/json' +``` Notice that we added `customer1` to the path of the request. This tells the core that the tenant you want to get the information about is `customer1` (the one we created before in this page). If the input tenant does not exist, you will get back a `200` status code with the following JSON: ```json -{status: "TENANT_NOT_FOUND_ERROR"} +{"status": "TENANT_NOT_FOUND_ERROR"} ``` Otherwise you will get a `200` status code with the following JSON output: @@ -698,19 +762,32 @@ Otherwise you will get a `200` status code with the following JSON output: ```json { "status": "OK", + "emailPassword": { + "enabled": true + }, "thirdParty": { + "enabled": true, "providers": [...] }, + "passwordless": { + "enabled": true + }, "coreConfig": { "email_verification_token_lifetime": 7200000, "password_reset_token_lifetime": 3600000, "postgresql_connection_uri": "postgresql://localhost:5432/db2" }, "tenantId": "customer1", - "firstFactors": ["emailpassword", "thirdparty", "otp-email", "otp-phone"], } ``` + + + + + + +