[keycloak-dev] Missing RESTful equivalents for some User Storage SPI methods?

Bill Burke bburke at redhat.com
Wed Jan 25 16:26:56 EST 2017



On 1/25/17 3:39 PM, Tomas Kyjovsky wrote:
> Hello,
>
> It seems there are some User Storage SPI methods for which there should be some equivalents in REST API -- but there aren't.
>
>
> 1) Searching for users by attribute:
>
> UserQueryProvider.searchForUserByUserAttribute(String attrName, String attrValue, RealmModel realm)

Used internally only at the moment.
>
>
> 2) Credential types (not 100% sure about these though):
>
> CredentialInputValidator.isConfiguredFor(RealmModel realm, UserModel user, String credentialType)
>
> CredentialInputUpdater.getDisableableCredentialTypes(RealmModel realm, UserModel user)
Available in user json representation

> CredentialInputUpdater.disableCredentialType(RealmModel realm, UserModel user, String credentialType)

Yes, there is a REST method for that, but not on the REST client 
interface.  Needs to be added.  I'll do that.  Good catch.

Bill


More information about the keycloak-dev mailing list