[keycloak-dev] new generic component storage

Bill Burke bburke at redhat.com
Thu Aug 18 13:44:34 EDT 2016


You'd have to look at how UserStorageProvider, specifically 
UserStorageManager.  Its not complete yet.  Still need to add validation 
callbacks which is on my todo list.


On 8/18/16 4:10 AM, Stian Thorgersen wrote:
> Sounds great. Do you have an example on how to use it? Or do we need 
> to dig into the code in details?
>
> On 9 August 2016 at 15:15, Bill Burke <bburke at redhat.com 
> <mailto:bburke at redhat.com>> wrote:
>
>     I've implemented a new generic component storage, api, REST API, and
>     admin console support.  Classes/interfaces are in server-spi
>     org.keycloak.component package and created via methods in RealmModel.
>     It is basically a more generic form of mapper models,
>     UserFederationModel, etc.  Components describe themselves and can be
>     generically rendered by the admin console.  The storage model is meant
>     to support nested subcomponents (i.e. UserFederationModel and
>     UserFederationMappers).  Config now supports a MultivaluedHashmap
>     instead of a flat Map to support list storage. There is a common REST
>     API under the realm that should be usable for all component
>     types.  The
>     UserStorage SPI uses this new SPI from top to bottom.
>
>     We should consider whether we want to migrate other component types to
>     this new model.
>
>     When you create components to store, you specify a parentId (i.e.
>     Realm,
>     Client, a parent component), a provider type, a provider id, and
>     config.  For export, the json model will contain components under
>     Realm
>     and Client where the perspective parentId is Realm and Client.  I
>     still
>     want to make this as human consumable as possible so that these
>     components can be defined by humans in json.
>
>     Bill
>
>     _______________________________________________
>     keycloak-dev mailing list
>     keycloak-dev at lists.jboss.org <mailto:keycloak-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/keycloak-dev
>     <https://lists.jboss.org/mailman/listinfo/keycloak-dev>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160818/902723a6/attachment-0001.html 


More information about the keycloak-dev mailing list