<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">I think there are more ways to do
something like this. One way can be doing Angular HTTP interceptor
at your application side. Another possibility can be handle this
on Keycloak side and create Event listener, which will listen for
LOGIN event and then check your DB (See our provider's example and
especially examples/providers/event-listener-sysout for the
inspiration).<br>
<br>
Not sure which possibility is better for you, I am not sure I
correctly understand your use-case well.<br>
<br>
Marek<br>
<br>
On 3.6.2015 19:40, Juan Diego wrote:<br>
</div>
<blockquote
cite="mid:CAJGEj6cZYHHQFK3JBvSyF7SO3uA1fhn7wz8_t0jfxKLHjk+ujQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>Hi<br>
</div>
I am doing a portal with angularJS and the backend with
java, and it seems to be working with the basics.<br>
</div>
I am having trouble figuring out a way to do the following:<br>
</div>
I have a table user with info like username, email and userid,
avatar, etc, and I want to update that table with the user
info if it is the first time they log in.<br>
<br>
</div>
The only way I can think to do this is to create a controller
and set it on all my pages so it looks if the user is already in
the database, but it seems like it will try to do that all the
time, which doesnt seems practical.<br>
<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>