Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to replace cross_origin_auth argument to cross_origin_authentication in auth0_client resource #450

Closed
6 tasks done
naru200 opened this issue Jan 30, 2023 · 3 comments
Labels
🪲 bug Something isn't working

Comments

@naru200
Copy link

naru200 commented Jan 30, 2023

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this provider and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

The 'cross_origin_auth' attribute no longer works correctly in the client API of Auth0 Management API V2. I checked this through Auth0 Support Center.

Since the 'cross_origin_authentication' property works normally, it needs to be replaced with this.

Expectation

Can control cross-origin authentication option by using the 'cross_origin_authentication' argument to the auth0_clients resource.

Reproduction

Check that the cross_origin_auth argument is not working properly

  1. Create auth0_client resource, and set the cross_origin_auth argument to false.
  2. terraform apply
  3. In the Auth0 Dashboard, you can see that the Allow Cross-origin Authentication setting is still turned on.

Auth0 Terraform Provider version

0.42.0

Terraform version

1.3.7

@naru200 naru200 added the 🪲 bug Something isn't working label Jan 30, 2023
@sergiught
Copy link
Contributor

Thanks for bringing this to our attention @naru200 👋🏻

I'll work on a fix today and we'll aim at squeezing it into the upcoming release ETA: ~ this week.

@sergiught
Copy link
Contributor

Fix available within the Go SDK: auth0/go-auth0#159. But not yet released.

@sergiught
Copy link
Contributor

Hey @naru200 👋🏻 this is now available in the latest release. https://github.com/auth0/terraform-provider-auth0/releases/tag/v0.43.0. We kept the cross_origin_auth schema name but under the hood it uses the cross_origin_authentication json tag when sending the payload to the server. This was done to prevent introducing a breaking change for users. You can also check the updated docs in https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/client#cross_origin_auth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants