[keycloak-user] Migrating custom user database to Keycloak

Stian Thorgersen stian at redhat.com
Fri May 8 01:17:08 EDT 2015



----- Original Message -----
> From: "Anton Hughes" <ah at magick.nu>
> To: "Marek Posolda" <mposolda at redhat.com>
> Cc: keycloak-user at lists.jboss.org
> Sent: Thursday, 7 May, 2015 9:58:14 PM
> Subject: Re: [keycloak-user] Migrating custom user database to Keycloak
> 
> 
> On Fri, Mar 20, 2015 at 8:58 AM, Marek Posolda < mposolda at redhat.com > wrote:
> 
> 
> 
> Yes, Keycloak also verified during each authentication (or interaction with
> the UserModel) if user still exists in your backend and it's removed from
> Keycloak DB if not.
> 
> Normally user is synced to Keycloak DB after successful login (your step 4),
> but you can also sync all your users from your storage at once or setup
> periodic sync.
> 
> HI Marek
> 
> Thanks for your help with this.
> Ideally, what we would like is to have keycloak do all user-management - that
> is, migrate all users out of our custom application and store them in
> Keycloak.
> This would slim down our application, and avoid having to custom provider.
> 
> Is this possible?

Yes, you've got two options atm:

* Export your users to a json file and import into Keycloak - in the future we want to be able to import users into existing realm, but currently you have to create a new realm
* Use the admin rest api (or java admin client) to import users

> 
> Thanks
> 
> 
> --
> 
> 
> 
> 
> 
> Anton Hughes
> 
> Co-founder
> 
> ah at magick.nu
> 
> www.magick.nu
> 
> 	
> 
> 	
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list