I have created a database connection and connected to an application.
When I try to crate a user in the database I get an error “Connection is disabled”
curl -s -X POST https://turbonomic.auth0.com/api/v2/users \
> -H "Content-Type: application/json" \
> --header "authorization: Bearer ${token}" \
> -d @- <<EOF
> {
> "email": "mark@marklaff.com",
> "password": "Chang3-m3",
> "connection": "tech-support-users"
> }
> EOF
{"statusCode":400,"error":"Bad Request","message":"connection is disabled (client_id: iZQEzztXWLBOo70gE7zjRdJE4D3BTuGN - connection: tech-support-users)","errorCode":"auth0_idp_error"}
Here is my application:
And the connection:
My guess is that I need to (1) fetch an access token using the ID and SECRET for this application, and (2) give this application permission to access the Management API.
To create the application and database I was using the ID and SECRET from the “Auth0 Management API (Test Application)” - which I guess doesn’t have access to this database.
Is that the right track?
Thanks,
Mark