Please why does this work when client_id is empty here

241 Views Asked by At

Hello im new to auth0 and i want to know why is this working:

im making a post request to /dbconnections/signup with this body :

{
  "client_id" : "CLIENT_ID",
  "email" : "myemail",
  "username" : "myuser",
  "password" : "mypass",
  "connection" : "Username-Password-Authentication"
}

this returns “connection is disabled” because i have it disabled for the client but for some reason when i leave the client_id empty it says the account is created :

{
  "client_id" : "id_generated",
  "email_verified" : false,
  "email" : "myemail"
}

thanks

why does it work when client_id is empty

1

There are 1 best solutions below

0
On BEST ANSWER

i asked the same question on the auth forum and the reason why is this working is because apparently client_id is not actually required for the /dbconnections/signup endpoint despite what the documentation said: https://community.auth0.com/t/please-why-does-this-work-when-client-id-is-empty-here/96211