-
Notifications
You must be signed in to change notification settings - Fork 54
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
Bug when decoding Social Google Connection #14
Comments
This issue still persists today, just got bit by it again as I was creating a new tenant and forgot that I originally hit this months ago. The extra frustrating thing is that if you add a fake value here, and then remove it - the An extra frustrating thing is in the Go SDK it doesn't tell you which field it is that is having troubles. Example:
Prints the real error:
Where as the SDK prints out a pretty cryptic:
I'm guessing because it uses a wrapper |
This hit me again today, any chance of a bump? Appreciate there's a workaround so low priority. The workaround for me was hinted in the linked issue - I went to the connection, edited the |
allowed_audiences can be null, an empty string, or an array of strings. In order to handle this we have to implement a custom marshaller that will map to the expected value to avoid errors. Fixes #14
Hey @alex-restless, we have a fix up for this at #174. I think we might (tentatively) cut a release next week as we'd like to also include some other changes alongside it |
Thank you for fixing this! Upgraded from 0.37.1 to 0.45. Worked like a charm! 🚀 |
From auth0 created by juniocezar: go-auth0/auth0#117
The
allowed audiences
field for the Google OAuth2 Social connection has the[]interface{}
type.https://github.com/go-auth0/auth0/blob/1c72b20f2cab2ec7b754b93169a19d773af8d444/management/connection.go#L195
The Social Google account usually comes enabled by default in Auth0, but if you disable it:
and run a
ConnectionManager.List()
to get the list of all connections, this Social Google connection is still being listed.The problem here is that the
allowed_audiences
option comes as an empty string, leading to an Unmarshall error.I may try to work on a fix for it when I get some spare time
The text was updated successfully, but these errors were encountered: