keycloak-kafka icon indicating copy to clipboard operation
keycloak-kafka copied to clipboard

Keycloak v19 REGISTER_EVENT has NULL for "firstname", "lastname" after activating declarative-user-profile

Open marziman opened this issue 1 year ago • 1 comments

Hello @SnuK87

we are a bit lost and need your advice. We are using this extension successfully with older KC versions. Since the migration to KC v19 and after activating the feature "declarative-user-profiles" and setting User Profile to ON in the Realm, we are getting in our Register Event NULL for both fields.

We are trying to understand why this happens. Can it be that some SPIs and APIs used in the current implementation of the extension are now deprecated or causing this problem?

Many thanks for your help. BR Mehmet

marziman avatar Sep 15 '22 12:09 marziman

@marziman I'm not able to reproduce this problem with KC 19.0.2 and DECLARATIVE_USER_PROFILE enabled. It was working as before during my tests.

I assume you removed the default attributes from the user profile and that's why they are not in the payload anymore. As you can see in the code, this module doesn't do anything with the event except for writing it as JSON string to kafka. This means that the register event in keycloak doesn't work with customized user profiles. Maybe that's why it's still a preview feature?

SnuK87 avatar Oct 23 '22 11:10 SnuK87