Hey, There I’ve Been try to get the 2 leg auth to work. mostly just create a customer
also i’ve already review the post similar to this but, find i’m still having problems.
I’ve area gone through the process of making a client. Currently what i’m submitting is the following.
curl -u "b*****alpha-v02-4****:9a*********5" -d email=testCustomer012@testEmail.com -d no_password=true https://api.particle.io/v1/orgs/fakeorgslug/customers
I’ve also try doing versions where I’ve pass the my access token -H “Authorization: bearer 1234”
Based on the format from the guide docs. I don’t use ‘-X POST’ it just returns me error if i do.
curl -X POST -u "client-id-goes-here:client-secret-goes-here" -d email=abu@agrabahmonkeys.com \
-d no_password=true https://api.particle.io/v1/orgs/particle/customers
I’m getting errors. Scope errors, even though the current client i’m pointing to doesn’t contain any required scopes. this happens with versions that have scopes and none.
{
"ok": false,
"code": 400,
"error": {
"name": "OAuth2Error",
"message": "Requested customer scope doesn't exist",
"headers": {
"Cache-Control": "no-store",
"Pragma": "no-cache"
},
"code": 400,
"error": "invalid_scope",
"error_description": "Requested customer scope doesn't exist"
}
But what’s really making me scratch me head is this error after if have submitted the the block again. What I get from the error from before I asume that it didn’t create the customer but.
{
"ok": false,
"code": 400,
"error": "customer_exists"
}
I check the customers tab in dashboard and also used the GET version of it and I get an empty window/array.
GET /v1/orgs/:orgSlug/products/:productSlug/customers
Anyone noticing something I’m missing or not doing right? btw I’m using a Web type client not sure if that matter in this case.
Thank you for any advice in advance.