-
Notifications
You must be signed in to change notification settings - Fork 59
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
Connections with Wordpress strategy cannot be successfully unmarshaled due to improper expectations #372
Comments
If I switch |
Hi @nokios , I wanted to let you know that we've successfully addressed the issue you raised. However, the fix hasn't been released just yet. I'm pleased to inform you that your PR has been merged #398 , and I want to express my gratitude for bringing it to our attention. Your contribution is greatly appreciated! |
Hi @nokios , Great news! The issue has been fixed in version 1.6.0. Please take a moment to review, and feel free to reach out if you encounter any further issues. |
Thank you for letting me know! We got around this issue ourselves by removing the un-used wordpress connection. But I am glad to know it has been addressed! |
Checklist
Description
While trying to leverage the Auth0 Terraform provider to configure connections on an application, I came across a JSON decoding issue when trying to use the data source
auth0_connection
with thename
property specified, and not the ID.The problem is that we have a wordpress connection which the API returns with the following payload: (modified for security)
This does not line up with the expectation that Wordpress "options" should follow
ConnectionOptionsOAuth2
(seemanagement/connection.go:181
).This is causing the following error in the upstream terraform provider, which is as follows:
I would provide a fix but I'm not sure what the proper options definition is.
Expectation
Getting a list of connections from the API, which contains at least one connection with the wordpress strategy, and a scope specified as an array, should properly parse.
Reproduction
management.Connection.List
Auth0 Go SDK version
1.4.1
The text was updated successfully, but these errors were encountered: