# Is it possible to issue individual client\_ids to tens of thousands of IoT devices?

**URL:** <https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440>\
**Category:** Get Help\
**Tags:** client, pricing, token-replace-attack\
**Created:** [October 10, 2017, 8:00pm UTC](https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440 "2017-10-10T20:00:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![junya.hayashi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/junya.hayashi/32/7343_2.png) [@junya.hayashi](https://community.auth0.com/u/junya.hayashi)\
**Post date:** [October 10, 2017, 8:00pm UTC](https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440/1 "2017-10-10T20:00:17Z")

</div>

Is it possible to issue individual client\_ids to tens of thousands of IoT devices? I want to allow users to access devices, and use different client\_ids for devices in order not to allow Token Replace Attack. The device is consumer product, and I want to consider the case of device hacking. I want minimize a risk even if one of devices is hacked.

---

<div class="post-metadata">

**Author:** ![jensole](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jensole](https://community.auth0.com/u/jensole)\
**Post date:** [November 15, 2017, 9:51pm UTC](https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440/2 "2017-11-15T21:51:57Z")

</div>

I too can’t find any suggestion on how to handle thousands of IoT device in a secure manner. We need individual client secrets for each device. Do i need to create non-intercative client for each device or is there other more smooth ways to handle this . At the moment the solution seems to have 1 non-interactive client for all devices sharing the same secret. This is not ideal from a security perspective.

---

<div class="post-metadata">

**Author:** ![jensole](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jensole](https://community.auth0.com/u/jensole)\
**Post date:** [November 15, 2017, 9:51pm UTC](https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440/3 "2017-11-15T21:51:57Z")

</div>

I too can’t find any suggestion on how to handle thousands of IoT device in a secure manner. We need individual client secrets for each device. Do i need to create non-intercative client for each device or is there other more smooth ways to handle this . At the moment the solution seems to have 1 non-interactive client for all devices sharing the same secret. This is not ideal from a security perspective.

---

<div class="post-metadata">

**Author:** ![audunf](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@audunf](https://community.auth0.com/u/audunf)\
**Post date:** [December 13, 2017, 9:55pm UTC](https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440/4 "2017-12-13T21:55:09Z")

</div>

Evaluating using Auth0 for a similar case (some clients are devices, others are users - all using the same API). Devices aren’t secure, so they can’t share client\_id/client\_secret as that’d risk all devices if one is compromised. At the same time, using individual clients per device doesn’t seem right (again - tens of thousand devices).

---

<div class="post-metadata">

**Author:** ![sencorsoft](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sencorsoft/32/12561_2.png) [@sencorsoft](https://community.auth0.com/u/sencorsoft)\
**Post date:** [February 8, 2018, 1:26am UTC](https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440/5 "2018-02-08T01:26:07Z")

</div>

I posted a similar question at:

> [Which grant type for many IoT devices? - Auth0 Community](http://community.auth0.com/questions/14426/which-grant-type-for-many-iot-devices)

What I ended up doing: create a single non-interactive client, with one username/password per device. You can create a completely new account for each device, or use the existing username/password used for SSH.

Note that I don’t think this is the right way to do it, but it seems scalable and more manageable than creating new clients for each device. If my interpretation is right, it should also be secure. But I’d really like some feedback from Auth0 on this.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/is-it-possible-to-issue-individual-client-ids-to-tens-of-thousands-of-iot-devices/8440/6 "2018-03-02T05:56:54Z")

</div>


