Customer login endpoint in the CloudAPI


#1

Does anyone know the cloud API endpoint for logging in a customer?

I can see 3 option for creating a customer, but not one for logging them in.


#2

IIRC, your customers wouldn’t actually log in but rather request an access token and use that.

https://docs.particle.io/reference/device-cloud/api/#create-a-customer---access-token
https://docs.particle.io/reference/device-cloud/api/#generate-a-customer-scoped-access-token


#3

Ah gotcha.

Thanks for that. :slight_smile:


#4

Wait, so there is no way to authenticate my customers ? :confused:


#5

This thread may contain some useful infos for your issue at hand :wink:


#6

Well shit…


#7

Have you actually read the thread and not only the first few posts?
While things may have gotten a bit more “complicated” it’s still not a no-go.


#8

From what I understand, I now need to create a user management system in my backend.


#9

At this point, the only thing I get from the particle cloud is the claim code.


#10

hey @rakshak ,
not everything is lost, like @ScruffR mentioned.
You do not need to create a user management system in your backend. You can, if you wanted to, but you do not NEED to.

There is a login endpoint, at least exposed in the Particle API JS here.

What was discussed in the other thread was the deprecation of the reset password endpoint.
And for overcoming that issue, Particle created some guidelines here.

Cheers,
Gustavo.


#11

Hey @gusgonnet, thanks for the clarification.

Do you know what the URL for the login endpoint.

For example, if I want to create a new customer I would hit

https://api.particle.io/v1/products/10075/customers

like it is documented here

What is the URL for user logins ?