Enabled connections are missing when creating an organization
larsf96 opened this issue · 2 comments
Describe the problem you'd like to have solved
According to the changelog (https://auth0.com/changelog#6BBzbWOwkhEZdzauu2s0Bg), it is now possible to set the enabled connections for an organization directly during the Creation of an organization. This feature is currently not usable with the auth0-java library
Describe the ideal solution
It should be possible to pass the list of enabled_connections when creating an organization
Alternatives and current work-arounds
Currently, we have to do separate API calls directly to the management API or set the connections afterwards
I'm also in need of this feature. I made a work-around by extending Organization and adding the extra property:
import com.auth0.json.mgmt.organizations.EnabledConnection;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AuthOrganization extends com.auth0.json.mgmt.organizations.Organization {
@JsonProperty("enabled_connections")
private List<EnabledConnection> enabledConnections;
}
Hi @charliearaya, We have released a new version (1.42.0) which should support this. Do let us know if you need any more help and thanks a lot for your contribution!