Form Vault Connection Bad request

Issue with creating Form Flow Vault connection via Flow UI and Management api.

I created a Machine 2 Machine App, granted access to the Management Api.
I’m using from that app the client Id and Client secret.

Through the Ui I get the same error when using the api.

{
    "app_id": "AUTH0",
    "name": "somename",
    "setup": {
        "domain": "<string>",
        "client_id": "<string>",
        "client_secret": "<string>",
        "type": "OAUTH_APP"
    }

this is a valid body, but get error

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Payload validation error: 'Data does not match any schemas from 'oneOf'' on property setup (Flows Vault Connection configuration).",
  "errorCode": "invalid_body"
}

Hi @k.guy

Welcome to the Auth0 Community!

I understand that you are receiving a " Payload validation error: 'Data does not match any schemas " error message when attempting to create a Form Vault Connection. There could be different reasons for this issue, please allow me to detail:

  • you could be using https:// or Slashes in the domain. Please ensure it is under the correct format of “domain”: “your-tenant.us.auth0.com” without https://;

  • your tenant domain name starts with a numeric digit. We have had a report of this issue that had this cause and the solution to removing the error was to remove the starting numerical digit from the domain name;

  • ensure that your M2M application has the correct scopes in the access token. It will require to have the create:flows_vault_connections and update:flows_vault_connections scopes granted and authorized.

Let us know if this helped you clear the issue!

Best regards,
Gerald

Thank you for the response and solving this issue for me.
The issue was indeed the domain.

I was using just the subdomain your-domain, not the whole your-domain.uk.auth0.com

Hi @k.guy

Thank you for your confirmation, we’re glad to have helped you with this issue!

I am marking my initial message as the solution for this topic, please do not hesitate to reach out to us for any other issues or requests, we will gladly look into it.

Have a great one!
Gerald