[keycloak-user] custom user federation syncAllUsers

Marek Posolda mposolda at redhat.com
Wed May 4 09:35:14 EDT 2016


Yes, see the other mail I've posted in this thread (If you mean the 
usecase, that when user is registered in Keycloak, your 
federationStorage will be notified and some info about user from 
Keycloak will be propagated to the federationStorage too).

Marek

On 04/05/16 10:05, Niels Bertram wrote:
> Is there a way to register a synchronisation callback of some sort 
> with keycloak to ensure the user is replicates back into the user 
> database as well? That would be a mighty useful capability especially 
> in corporate environments where the good old user table cannot be 
> removed for whatever reason. Thanks Niels
>
> On 4 May 2016, at 16:08, Stian Thorgersen <sthorger at redhat.com 
> <mailto:sthorger at redhat.com>> wrote:
>
>> Not sure I'm following. Keycloak can sync users created from your 
>> database, but it can't write users back. New users created in 
>> Keycloak directly are only stored in Keycloaks database.
>>
>> On 29 April 2016 at 23:52, Juan Diego <juandiego83 at gmail.com 
>> <mailto:juandiego83 at gmail.com>> wrote:
>>
>>     So The recommend way would be to create my own user administrator
>>     and when I create a user it will create a user on keycloak via
>>     keycloak s rest api.
>>
>>
>>
>>     On Thu, Apr 28, 2016 at 11:21 PM, Stian Thorgersen
>>     <sthorger at redhat.com <mailto:sthorger at redhat.com>> wrote:
>>
>>         User federation isn't designed to push users created in
>>         Keycloak to the database. It only supports syncing users that
>>         are created in the database.
>>
>>         On 27 April 2016 at 18:55, Juan Diego <juandiego83 at gmail.com
>>         <mailto:juandiego83 at gmail.com>> wrote:
>>
>>             I was checking the example for
>>             federation-properties-example. In both examples when you
>>             sync all users, it just checks for the users in the
>>             properties file and adds it to keycloak if it doesnt exist.
>>             If I want to do it both ways, so it adds users from
>>             keycloak to my database, and users from my database to
>>             keycloak. Should I add them here?  I am not managing any
>>             password on my database, so i just need user id and
>>             username and maybe email.
>>
>>             Also when I add a new user I can tell that
>>             syncronizeRegistrations() is being called but it is
>>             null.  In order to create a new user in my database,
>>             should I call a create user function to my database here.
>>
>>             Thanks,
>>
>>
>>
>>             _______________________________________________
>>             keycloak-user mailing list
>>             keycloak-user at lists.jboss.org
>>             <mailto:keycloak-user at lists.jboss.org>
>>             https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>>
>>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160504/f8adb88f/attachment-0001.html 


More information about the keycloak-user mailing list