<div dir="ltr">Hi,<div><br></div><div>That&#39;s a very interesting use-case. One which we have wanted to look into ourselves, but haven&#39;t had the resources. Ideally I&#39;d say we&#39;d have a device concept in Keycloak as they&#39;re not strictly clients or users. They&#39;d most likely be backed by users, but would have different screens for configuration and would have separate authentication flows. That would require a fair bit of work to add though.</div><div><br></div><div>In the mean time I don&#39;t think clients are a good fit as Keycloak is not currently designed to have large amounts of clients, both for manageability and performance. Both of the issues can be overcome fairly easily, but that would require some work.</div><div><br></div><div>The best solution in my opinion is to use users and implement your own custom authenticator to handle IOT devices. It&#39;s fairly simply to do and gives you the ability to handle authentication of the devices exactly how you want to. See <a href="http://keycloak.github.io/docs/userguide/keycloak-server/html/auth_spi.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/auth_spi.html</a> for more details.</div><div><br></div><div>I&#39;d appreciate if you kept me updated on your progress as I&#39;m very interested :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2016 at 10:29, Matuszak, Eduard <span dir="ltr">&lt;<a href="mailto:eduard.matuszak@atos.net" target="_blank">eduard.matuszak@atos.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<font face="Calibri" size="2"><span style="font-size:11pt">
<div>Hello</div>
<div> </div>
<div>We are planning to get a lot of devices, identifyable by individual certificates, into an IOT-system being designed and developed at the moment. We choosed to authenticate all actors (users, software components and devices as well) by OIDC-tokens and (pre)decided
to use Keycloak as ID provider. User and software components are quite straightforward to handle with Keycloak (as Keycloak users with the help of a user federation provider &amp; id brokerage and for applications as Keycloak clients respectively). But I am not
sure of how to represent our devices (we want to support hundreds of thousands of them later on!) by Keycloak means.</div>
<div> </div>
<div>It seems that we essentially have 2 possiblities to register a device in Keycloak</div>
<ul style="margin:0;padding-left:36pt">
<li>As a user</li><li>As a client</li></ul>
<div> </div>
<div>By representing devices as Keycloak clients we might take advantage of the ServiceAccount (Oauth-Client Credential) flow and become able to implement it via (dynamic!) registration and it and seems, that we will even be able to authenticate our device
by their certificates by choosing &quot;Signed Jwt&quot; as authenticator option.</div>
<div> </div>
<div>My question is, if it would be a good idea to register a very big amount of devices as Keycloak clients with regards to performance and manageability. In principle I would prefer a user-representation (faciliting usage of user federation provider &amp; id
brokerage for instance), but as far as I understood, the appropriate flow would be Direct Access (ResourceOwnerPassword Credentials) and here we can only deal with username/password instead of certificates.</div>
<div> </div>
<div>Do you have any suggestions or hints (even the conclusion, that Keycloak is not the suitable ID-provider-implementation for large-scale IOT-systems)?</div>
<div> </div>
<div><font face="Verdana" size="2"><span style="font-size:9pt">Best regards, Eduard Matuszak</span></font></div>
<div> </div>
<div><font size="2"><span style="font-size:9pt"> </span></font></div>
<div> </div>
</span></font>
</div>

<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>