[keycloak-dev] UserProvider merged

Bill Burke bburke at redhat.com
Tue Jul 15 15:59:24 EDT 2014


* ModelProvider renamed to RealmProvider
* All user related methods except for credential validation removed from 
RealmModel
* KeycloakSession.users() gets you a UserProvider
* All classes now use UserProvider to work with users.
* KeycloakSession.model() renamed to realms()
* There are two cache providers now.  One for realms, other for users.

TODO:
* JPA UserRoleMappingEntity and UserEntity still have @ManyToOne to 
RoleEntity and RealmEntity respectively.  Do we want to keep these 
constraints?
* JPA and Mongo RealmEntity and UserEntity should be refactored to be 
attribute based as in the Hybrid model.  As Stian suggested, this will 
allow us flexibility in the future.
* Credential validation, update needs to move from RealmModel to 
UserProvider.  I'll do this tomorrow.



-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com


More information about the keycloak-dev mailing list