There seems to be an issue when creating a vault connection. I get the follow error in both the UI and when I try to hit the management API directly to create a new Auth0 vault connection.
{
"statusCode": 400,
"error": "Bad Request",
"message": "Payload validation error: 'None of the valid schemas were met' on property setup (Flows Vault Connection configuration). Inner errors: [ Payload validation error: 'Additional properties not allowed: client_secret,client_id,domain' on property setup ({description}). (also) Payload validation error: 'Object didn't pass validation for format hostname: {redacted}' on property setup.domain. (also) Payload validation error: 'Invalid value \"OAUTH_APP\"' on property setup.type. (also) Payload validation error: 'Missing required property: algorithm' on property setup. ].",
}
I give all valid inputs and the app I am creating has the management API authorized and I even gave it all scopes to ensure that it wasn’t the issue.
What am I doing wrong?
Edit:
I went into the devtools and from the network tool I copied the request as a cURL. Here it is (well most of it other than sensitive info I redacted):
curl 'https://forms.auth0.com/api/us/{redacted}/flows/vault/connections/{redacted}' \
-X 'PATCH' \
-H 'accept: application/json' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'auth0-forms-accept-casing: snake' \
-H 'auth0-forms-csrf-token: {redacted}' \
-H 'auth0-forms-frontend-version: 1.712.0' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'origin: https://forms.auth0.com' \
-H 'pragma: no-cache' \
-H 'priority: u=1, i' \
-H 'referer: https://forms.auth0.com/tenants/us/{redacted}/vault/apps/AUTH0/edit' \
-H 'sec-ch-ua: "Not A(Brand";v="8", "Chromium";v="132", "Google Chrome";v="132"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
\
--data-raw '{"name":"Auth0Test","setup":{"domain":"{redacted}","client_id":"{redacted}}","client_secret":"{redacted}}","type":"OAUTH_APP"}}'