Skip to content

Payload validation error: Additional properties not allowed: domainConnection #707

Open
@mblanchard-mirakl

Description

@mblanchard-mirakl

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

When creating a connection with version 2.19.0 of the SDK, the server returns an HTTP/400 Bad Request with the following message `Payload validation error: 'Additional properties not allowed: domainConnection' (the same code works with version 2.18.0)

Reproduction

Create a connection:

final Connection connection = new Connection("connection1", "samlp");
connection.setOptions(Map.of(
    "metadataXml", "<?xml.../>",
    "entityId", "urn:165465-65465465"
));
managementApi.get().connections().create(connection).execute().getBody();

Here the response:

Method threw 'com.auth0.exception.APIException' exception.
Payload validation error: 'Additional properties not allowed: domainConnection'.
Image Image

Additional context

No response

auth0-java version

2.19.0

Java version

21

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions