You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
Perhaps some kind of regression? I'll ping them, otherwise we could write a custom unmarshaller for the connection type (I'd rather avoid this if possible).
This just came up for me, also. I turned on debug mode and checked out the JSON and see "allowed_audiences": "" in the JSON from Auth0. Lucky for me, this connection was accidentally turned on in our tenant and now I can go delete it and make my problem disappear.
Unfortunately for me, when you are using List on the ConnectionManager struct, the error is pretty generic:
json: cannot unmarshal string into Go struct field ConnectionList.connections of type []interface {}
It wasn't until I downloaded the JSON, broke the list into individual objects and tried to Unmarshal them each individually that I got to see the actual error referenced in the original issue above. Which I'm pretty sure is an annoyance of Go's JSON library, but just in case somebody else runs into this issue, that's how I dealt with it.
The
allowed audiences
field for the Google OAuth2 Social connection has the[]interface{}
type.auth0/management/connection.go
Line 195 in 1c72b20
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: