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

auth0_client_credentials requires read:client_secret permissions #774

Closed
6 tasks done
tadhglewis opened this issue Aug 11, 2023 · 2 comments
Closed
6 tasks done

auth0_client_credentials requires read:client_secret permissions #774

tadhglewis opened this issue Aug 11, 2023 · 2 comments
Labels
🪲 bug Something isn't working

Comments

@tadhglewis
Copy link

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

When migrating from token_endpoint_auth_method to auth0_client_credentials, if you're not using an access token that has read:client_secret you will receive Error: 403 Forbidden: You cannot read the following fields: client_secret when applying

More context: #772 (comment)

Expectation

I should not need a privileged access token to use this resource and it should be an empty string if read:client_keys is not in the token

To access this attribute you need to add the read:client_keys scope to the Terraform client. Otherwise, the attribute will contain an empty string

https://registry.terraform.io/providers/auth0/auth0/latest/docs/resources/client_credentials#optional

Reproduction

  1. Use terraform without a read:client_keys on the access token
  2. Migrate from token_endpoint_auth_method to auth0_client_credentials

Auth0 Terraform Provider version

0.50.0

Terraform version

NA

@sergiught
Copy link
Contributor

Hey @tadhglewis 👋🏻

I have a fix for this within #795, once reviewed and approved it will be available in the next release.

Appreciate your patience with the fix 🙏🏻

@sergiught
Copy link
Contributor

Hey @tadhglewis this is now fixed and available through https://registry.terraform.io/providers/auth0/auth0/1.0.0-beta.3, please give it a go and let us know if you encounter any other issues!

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