From d08041cc9a4834e93534e18dce3589b8a942c62d Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Wed, 22 Feb 2023 08:58:41 +0100 Subject: [PATCH] Add deprecation notice to universal_login flag on the auth0_tenant --- docs/resources/tenant.md | 2 +- internal/auth0/tenant/resource.go | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/resources/tenant.md b/docs/resources/tenant.md index 38c546c5f..9283ae44a 100644 --- a/docs/resources/tenant.md +++ b/docs/resources/tenant.md @@ -136,7 +136,7 @@ Optional: - `enable_public_signup_user_exists_error` (Boolean) Indicates whether the public sign up process shows a `user_exists` error if the user already exists. - `no_disclose_enterprise_connections` (Boolean) Do not Publish Enterprise Connections Information with IdP domains on the lock configuration file. - `revoke_refresh_token_grant` (Boolean) Delete underlying grant when a refresh token is revoked via the Authentication API. -- `universal_login` (Boolean) Indicates whether the tenant uses Universal Login. +- `universal_login` (Boolean, Deprecated) Indicates whether the New Universal Login Experience is enabled. - `use_scope_descriptions_for_consent` (Boolean) Indicates whether to use scope descriptions for consent. diff --git a/internal/auth0/tenant/resource.go b/internal/auth0/tenant/resource.go index 1a42b66aa..7a8b7473c 100644 --- a/internal/auth0/tenant/resource.go +++ b/internal/auth0/tenant/resource.go @@ -213,10 +213,12 @@ func NewResource() *schema.Resource { Description: "Indicates whether the tenant allows custom domains in emails.", }, "universal_login": { - Type: schema.TypeBool, - Optional: true, - Computed: true, - Description: "Indicates whether the tenant uses Universal Login.", + Type: schema.TypeBool, + Optional: true, + Computed: true, + Deprecated: "This attribute is deprecated. Use the `universal_login_experience` attribute" + + " on the `auth0_prompt` resource to toggle the new or classic experience instead.", + Description: "Indicates whether the New Universal Login Experience is enabled.", }, "enable_legacy_logs_search_v2": { Type: schema.TypeBool,