Replies: 4 comments
-
|
For different type of connection, the scope object is populated differently. Could you share which type of connection are you trying to create here? |
Beta Was this translation helpful? Give feedback.
-
It is a "social connection" with the |
Beta Was this translation helpful? Give feedback.
-
|
We are experiencing this as well, also with the I see that the implementation of the and it looks like the But the MarshalJSON implementation always converts to an array of strings: This is confirmed by running I see that the Auth0 API returns scopes as an array: The Terraform plan shows the a single space-separated string: And the resulting PATCH operation sends an array of strings: It seems like the options are:
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you both for your insights and contributions to this discussion. I want to assure you that our team is actively working on this. This means that, in the coming quarters, we’ll have a more robust and flexible schema that will effectively resolve these scope handling issues. We’re closely monitoring the progress and will keep you updated as things evolve. We appreciate your patience and collaboration, and we’ll make sure to keep you informed as we move forward. Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Description
When applying the
auth0_connectionresource, given you specify scopes as a set of strings (as mentioned in the docs, and not passing validation otherwise), the parsing goes wrong and the scopes end up as an array of strings in the connection instead of one string with the scopes being separated by spaces.Expectation
I expect to be able to declare the
auth0_connectionoptionsblock'sscopesas a set of strings (like the docs prescribe) and then have them being parsed as a whitespace separated string before being applied.The underlying request should have this syntax:
Reproduction
auth0_connectionoptionsblock'sscopesparameter like this:terraform applyGETrequest on the connection through the management api shows:GETrequest on the connection through the management api shows:Auth0 Terraform Provider version
1.19.1
Terraform version
1.11.2
Beta Was this translation helpful? Give feedback.
All reactions