# Got Payload validation error: 'Additional properties not allowed when creating a connection

**URL:** <https://community.auth0.com/t/got-payload-validation-error-additional-properties-not-allowed-when-creating-a-connection/113209>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [August 9, 2023, 6:34am UTC](https://community.auth0.com/t/got-payload-validation-error-additional-properties-not-allowed-when-creating-a-connection/113209 "2023-08-09T06:34:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutakk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gutakk/32/49721_2.png) [@gutakk](https://community.auth0.com/u/gutakk)\
**Post date:** [August 9, 2023, 6:34am UTC](https://community.auth0.com/t/got-payload-validation-error-additional-properties-not-allowed-when-creating-a-connection/113209/1 "2023-08-09T06:34:02Z")

</div>

I tried to test creating oidc connection following [this documentation](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/oidc#use-front-channel-specifying-issuer-settings)

and got following errors

```auto
{"statusCode":400,"error":"Bad Request","message":"Payload validation error: 'Additional properties not allowed: { \"strategy\": \"oidc\", \"name\": \"TEST\", \"options\": { \"type\": \"front_channel\", \"issuer\": \"https://my-idp-url.com\", \"authorization_endpoint\": \"https://my-idp-url.com/oauth/authorize\", \"token_endpoint\": \"https://my-idp-url.com/oauth/token\", \"client_id\" : \"my_client_id\", \"client_secret\" : \"my_client_secret\", \"scopes\": \"openid profile\" } }'.","errorCode":"invalid_body"}

```

this is my cURL

```auto
curl --request POST \
  --url 'https://signage-dev.auth0.com/api/v2/connections' \
  --header 'authorization: Bearer <MY_TOKEN>' \
  --data '{ "strategy": "oidc", "name": "TEST", "options": { "type": "front_channel", "issuer": "https://my-idp-url.com", "authorization_endpoint": "https://my-idp-url.com/oauth/authorize", "token_endpoint": "https://my-idp-url.com/oauth/token", "client_id" : "my_client_id", "client_secret" : "my_client_secret", "scopes": "openid profile" } }'

```

or even using this still got the same error

```auto
curl --request POST \
  --url 'https://signage-dev.auth0.com/api/v2/connections' \
  --header 'authorization: Bearer <MY_TOKEN>' \
  --data '{}'

```

Is there anything I did wrong?  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 14, 2023, 2:38pm UTC](https://community.auth0.com/t/got-payload-validation-error-additional-properties-not-allowed-when-creating-a-connection/113209/3 "2023-08-14T14:38:21Z")

</div>

Hi @gutakk,

Welcome to the Auth0 Community!

I can’t figure out what’s wrong with your cURL (scopes should be → `scope`, but fixing that didn’t fix the error)

Try this instead:

```plaintext
curl -L -X POST 'https://example.auth0.com/api/v2/connections' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {{ACCESS TOKEN}}' \
--data-raw '{"strategy":"oidc","options":{"scope":"openid profile email","discovery_url":"https://sample.auth0.com/.well-known/openid-configuration","type":"front_channel","authorization_endpoint":"https://sample.auth0.com/authorize","issuer":"https://sample.auth0.com/","jwks_uri":"https://sample.auth0.com/.well-known/jwks.json","userinfo_endpoint":"https://sample.auth0.com/userinfo","token_endpoint":"https://sample.auth0.com/oauth/token","client_id":"xxx"},"name":"sample-OIDC"}'

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 29, 2023, 1:05pm UTC](https://community.auth0.com/t/got-payload-validation-error-additional-properties-not-allowed-when-creating-a-connection/113209/4 "2023-08-29T13:05:24Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
