<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">We have events SPI. You can implement
your own Events listener and listen for events when:<br>
- user register by himself (This is classic REGISTER event)<br>
- admin creates new user in admin console (There is some admin
event)<br>
<br>
You can do EventListener provider, which will notify your
application. See some docs:<br>
<div><br>
<a
href="http://keycloak.github.io/docs/userguide/keycloak-server/html/events.html"><a class="moz-txt-link-freetext" href="http://keycloak.github.io/docs/userguide/keycloak-server/html/events.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/events.html</a></a><br>
</div>
<div><a
href="http://keycloak.github.io/docs/userguide/keycloak-server/html/providers.html"><a class="moz-txt-link-freetext" href="http://keycloak.github.io/docs/userguide/keycloak-server/html/providers.html">http://keycloak.github.io/docs/userguide/keycloak-server/html/providers.html</a></a><br>
</div>
<div><br>
</div>
<div>Also take a look at providers/event-listener-.. in examples
download</div>
<br>
<br>
Marek<br>
<br>
On 04/12/15 02:07, Thomas Darimont wrote:<br>
</div>
<blockquote
cite="mid:CAK-7U1i53e8w2bQczVeHMpeZqJFmgAigEa290XjB04C4xRBh8Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hello there,</div>
<div><br>
</div>
<div>are there any plans to provide a way to let client
applications</div>
<div>know of new users before they actually try to login?</div>
<div><br>
</div>
<div>This could be used for triggering on-boarding mechanisms
like e.g.</div>
<div>preparing a user environment (e.g. a tenant) for a
particular </div>
<div>user.</div>
<div><br>
</div>
<div>I was thinking of a mechanism like web-hooks, as github and
many other services use in similar scenarios, where you could
send a HTTP POST requests to the client application in case
of </div>
<div>a new user was registered in keycloak that was granted
access to that particular application and potentially others
as well.</div>
<div><br>
</div>
<div>The POST request could contain some user data like:</div>
<div>login, email, userid, client roles, perhaps for multiple
clients etc.</div>
<div>This would help client applications to associate a prepared
environment with the actual user from keycloak.</div>
<div><br>
</div>
<div>The intention is to keep an on-boarding experience fast as
possible for the user by doing some preprocessing as early as
possible.</div>
<div><br>
</div>
<div>There is already a similar functionality to propagate
logout events to client admin URL. </div>
<div>Perhaps this could also be used for this - just send user
created / user update / user deleted</div>
<div>events to this endpoints as well.</div>
<div>Perhaps with keeping track whether the clients acknowledged
the updated via a HTTP 200 response-status with a retry with
some back-off strategy otherwise.</div>
<div><br>
</div>
<div>One often uses JMS topics for those scenarious but I think
web-hooks would be a bit easier here. </div>
<div><br>
</div>
<div>Cheers,</div>
<div>Thomas</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
</blockquote>
<br>
</body>
</html>