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

I tried to test creating oidc connection following this documentation

and got following errors

{"statusCode":400,"error":"Bad Request","message":"Payload validation error: 'Additional properties not allowed: { \"strategy\": \"oidc\", \"name\": \"TEST\", \"options\": { \"type\": \"front_channel\", \"issuer\": \"\", \"authorization_endpoint\": \"\", \"token_endpoint\": \"\", \"client_id\" : \"my_client_id\",  \"client_secret\" : \"my_client_secret\", \"scopes\": \"openid profile\" } }'.","errorCode":"invalid_body"}

this is my cURL

curl --request POST \
  --url '' \
  --header 'authorization: Bearer <MY_TOKEN>' \
  --data '{ "strategy": "oidc", "name": "TEST", "options": { "type": "front_channel", "issuer": "", "authorization_endpoint": "", "token_endpoint": "", "client_id" : "my_client_id",  "client_secret" : "my_client_secret", "scopes": "openid profile" } }'

or even using this still got the same error

curl --request POST \
  --url '' \
  --header 'authorization: Bearer <MY_TOKEN>' \
  --data '{}'

Is there anything I did wrong?
Thanks for your help

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:

curl -L -X POST '' \
-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":"","type":"front_channel","authorization_endpoint":"","issuer":"","jwks_uri":"","userinfo_endpoint":"","token_endpoint":"","client_id":"xxx"},"name":"sample-OIDC"}'

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