<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>This is disappointing news, as when I asked this same question back in January the answer was that the intention is to have Keycloak scale to hundreds if not thousands of clients, and if there were issues you'd work with us on that.<br></div>
<div>&nbsp;</div>
<div>There's more to this issue than having a custom authenticator; the client interface allows you to click one button and generate the jks file containing the client's private key. We would need this not only for the first time a device is set up, but for key rotation on an ongoing basis.<br></div>
<div>&nbsp;</div>
<div>Are there ways to plug into the user management interface to allow generation of non-username/password credentials for a user?<br></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>On Fri, May 13, 2016, at 02:11 AM, Stian Thorgersen wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div>Hi,<br></div>
<div>&nbsp;</div>
<div>That's a very interesting use-case. One which we have wanted to look into ourselves, but haven't had the resources. Ideally I'd say we'd have a device concept in Keycloak as they're not strictly clients or users. They'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.<br></div>
<div>&nbsp;</div>
<div>In the mean time I don'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.<br></div>
<div>&nbsp;</div>
<div>The best solution in my opinion is to use users and implement your own custom authenticator to handle IOT devices. It's fairly simply to do and gives you the ability to handle authentication of the devices exactly how you want to. See&nbsp;<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.<br></div>
<div>&nbsp;</div>
<div>I'd appreciate if you kept me updated on your progress as I'm very interested :)<br></div>
</div>
<div><div>&nbsp;</div>
<div defang_data-gmailquote="yes"><div>On 12 May 2016 at 10:29, Matuszak, Eduard <span dir="ltr">&lt;<a href="mailto:eduard.matuszak@atos.net">eduard.matuszak@atos.net</a>&gt;</span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex;" defang_data-gmailquote="yes"><div><div>&nbsp;</div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">Hello</span></span></span><br></div>
<div>&nbsp;<br></div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">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.</span></span></span><br></div>
<div>&nbsp;<br></div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">It seems that we essentially have 2 possiblities to register a device in Keycloak</span></span></span><br></div>
<ul style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-left:36pt;"><li><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">As a user</span></span></span><br></li><li><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">As a client</span></span></span><br></li></ul><div>&nbsp;<br></div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">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 "Signed Jwt" as authenticator option.</span></span></span><br></div>
<div>&nbsp;<br></div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">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.</span></span></span><br></div>
<div>&nbsp;<br></div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt">Do you have any suggestions or hints (even the conclusion, that Keycloak is not the suitable ID-provider-implementation for large-scale IOT-systems)?</span></span></span><br></div>
<div>&nbsp;<br></div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt"><span class="font" style="font-family:Verdana"><span class="size" style="font-size:small"><span class="size" style="font-size:9pt">Best regards, Eduard Matuszak</span></span></span></span></span></span><br></div>
<div>&nbsp;<br></div>
<div><span class="font" style="font-family:Calibri"><span class="size" style="font-size:small"><span class="size" style="font-size:11pt"><span class="size" style="font-size:small"><span class="size" style="font-size:9pt">&nbsp;</span></span></span></span></span><br></div>
<div>&nbsp;<br></div>
<div>&nbsp;</div>
</div>
<div>&nbsp;</div>
<div>_______________________________________________<br></div>
<div> keycloak-user mailing list<br></div>
<div> <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br></div>
<div> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></div>
</blockquote></div>
</div>
<div><u>_______________________________________________</u><br></div>
<div>keycloak-user mailing list<br></div>
<div><a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br></div>
<div><a href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></div>
</blockquote><div>&nbsp;</div>
<div id="sig3995191"><div class="signature">--<br></div>
<div class="signature">&nbsp; Aikeaguinea<br></div>
<div class="signature">&nbsp; aikeaguinea@xsmail.com<br></div>
<div class="signature">&nbsp;</div>
</div>
<div>&nbsp;</div>
<pre>
-- 
http://www.fastmail.com - Access your email from home and the web
</pre>
</body>
</html>