Hi:
I am developing a custom UserStorageProvider
in Keycloak by extending AbstractUserAdapterFederatedStorage
. In my UserAdapter
class, I have implemented the getEmail()
method to return the user’s email from my external data source as shown below:
@Override
public String getEmail() {
return entity.geteMail(); // entity is my custom User object
}
However, when I go to the Keycloak Admin Console (/admin/REALM/console/#/REALM/users/.../settings
), the email field is still empty and not displayed.
but it works at page /admin/master/console/#/master/users