Creating Auth0 database connection using Java

Please include the following information in your post:

  • Which SDK this is regarding: e.g. auth0-java
  • SDK Version: 1.34.1
  • Platform Version: Node 12.19.0

How do you create a new database connection using Java?

Currently if I use com.auth0.client.mgmt.ConnectionsEntity.create(Connection),
there is no way to set the ‘strategy’ or the ‘name’ of the new connection using getters and setters in com.auth0.json.mgmt.Connection.

I get the following error
com.auth0.exception.APIException: Request failed with status code 400: Payload validation error: ‘Missing required property: strategy’. (also) Payload validation error: ‘Missing required property: name’.

Hey there!

Can you raise is it as a GitHub issue in the auth-java repo so we can get that addressed directly by the repo maintainers? Thank you! Once you have a link to it you can share it here with us so we can ping them.