From 507496d487ee0bd6cb457a1daeddd92c86b098ad Mon Sep 17 00:00:00 2001 From: Rajat Bajaj Date: Thu, 30 Jan 2025 23:19:42 +0530 Subject: [PATCH] Minor updates to docs --- docs/data-sources/client.md | 2 +- docs/resources/client.md | 2 +- internal/auth0/client/resource.go | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md index 99794ff5..2afffce9 100644 --- a/docs/data-sources/client.md +++ b/docs/data-sources/client.md @@ -54,7 +54,7 @@ data "auth0_client" "some-client-by-id" { - `grant_types` (List of String) Types of grants that this client is authorized to use. - `id` (String) The ID of this resource. - `initiate_login_uri` (String) Initiate login URI. Must be HTTPS or an empty string. -- `is_first_party` (Boolean) Indicates whether this client is a first-party client. +- `is_first_party` (Boolean) Indicates whether this client is a first-party client. Defaults to true from the API - `is_token_endpoint_ip_header_trusted` (Boolean) Indicates whether the token endpoint IP header is trusted. Requires the authentication method to be set to `client_secret_post` or `client_secret_basic`. Setting this property when creating the resource, will default the authentication method to `client_secret_post`. To change the authentication method to `client_secret_basic` use the `auth0_client_credentials` resource. - `jwt_configuration` (List of Object) Configuration settings for the JWTs issued for this client. (see [below for nested schema](#nestedatt--jwt_configuration)) - `logo_uri` (String) URL of the logo for the client. Recommended size is 150px x 150px. If none is set, the default badge for the application type will be shown. diff --git a/docs/resources/client.md b/docs/resources/client.md index 2f25acad..12625cdb 100644 --- a/docs/resources/client.md +++ b/docs/resources/client.md @@ -110,7 +110,7 @@ resource "auth0_client" "my_client" { - `form_template` (String) HTML form template to be used for WS-Federation. - `grant_types` (List of String) Types of grants that this client is authorized to use. - `initiate_login_uri` (String) Initiate login URI. Must be HTTPS or an empty string. -- `is_first_party` (Boolean) Indicates whether this client is a first-party client. +- `is_first_party` (Boolean) Indicates whether this client is a first-party client. Defaults to true from the API - `is_token_endpoint_ip_header_trusted` (Boolean) Indicates whether the token endpoint IP header is trusted. Requires the authentication method to be set to `client_secret_post` or `client_secret_basic`. Setting this property when creating the resource, will default the authentication method to `client_secret_post`. To change the authentication method to `client_secret_basic` use the `auth0_client_credentials` resource. - `jwt_configuration` (Block List, Max: 1) Configuration settings for the JWTs issued for this client. (see [below for nested schema](#nestedblock--jwt_configuration)) - `logo_uri` (String) URL of the logo for the client. Recommended size is 150px x 150px. If none is set, the default badge for the application type will be shown. diff --git a/internal/auth0/client/resource.go b/internal/auth0/client/resource.go index 9e29fad2..db10a07b 100644 --- a/internal/auth0/client/resource.go +++ b/internal/auth0/client/resource.go @@ -77,10 +77,11 @@ func NewResource() *schema.Resource { "If none is set, the default badge for the application type will be shown.", }, "is_first_party": { - Type: schema.TypeBool, - Optional: true, - Computed: true, - Description: "Indicates whether this client is a first-party client.", + Type: schema.TypeBool, + Optional: true, + Computed: true, + Description: "Indicates whether this client is a first-party client. " + + "Defaults to true from the API", }, "is_token_endpoint_ip_header_trusted": { Type: schema.TypeBool,