Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Docs and test to reflect API weirdness.
Browse files Browse the repository at this point in the history
  • Loading branch information
cthos authored and sergiught committed Jan 17, 2022
1 parent 619894e commit 7c3c8cc
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions auth0/resource_auth0_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,13 @@ func TestAccClientMobile(t *testing.T) {
resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.0.enabled", "true"),
),
},
{
// This just makes sure that you can change the type (where native_social_login cannot be set)
Config: random.Template(testAccClientConfigMobileUpdateNonMobile, rand),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"),
),
},
},
})
}
Expand Down Expand Up @@ -449,6 +456,23 @@ resource "auth0_client" "my_client" {
}
`

const testAccClientConfigMobileUpdateNonMobile = `
resource "auth0_client" "my_client" {
name = "Acceptance Test - Mobile - {{.random}}"
app_type = "non_interactive"
native_social_login {
apple {
enabled = false
}
facebook {
enabled = false
}
}
}
`

func TestAccClientMobileValidationError(t *testing.T) {

rand := random.String(6)
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ Arguments accepted by this resource include:

### Native Social Login

> Note: once this is set it must stay set, with both resources set to "false" in order to change the app_type
`native_social_login` supports the following arguments:

* `apple` (Optional) Resource:
Expand Down

0 comments on commit 7c3c8cc

Please sign in to comment.