-
Notifications
You must be signed in to change notification settings - Fork 118
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
Unable to get proper response from Auth0 get token call #304
Comments
Hi there @tommy38hk 👋🏻 , thanks for filing the issue and sorry you're running into trouble here. Are you able to share the CURL command structure you're using that is successfully making the API call? The example configuration you provided looks like it's encoding the HTTP request body as |
Hi @austinvalle curl --request POST |
Quick test before I try and reproduce that issue, can you try updating your data block to use the data "http" "auth0_token" {
url = var.auth0_token_endpoint
request_body = local.auth0_json
method = "POST"
request_headers = {
content-type = "application/json"
accept = "application/json"
}
} |
Yes, that fixed the issue. Thank you so much |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform CLI and Provider Versions
Terraform v1.4.6
Terraform Configuration
Expected Behavior
Be able to return the auth0 token
Actual Behavior
auth0_json_response = "{"error":"access_denied","error_description":"Unauthorized"}"
Steps to Reproduce
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
Proper token can be obtained using CURL command for the same credentials
Code of Conduct
The text was updated successfully, but these errors were encountered: