UserExtensionJacksonModule bean is registered twice

Hi, I am currently upgrading our project to the version 2024.06. In our project we use the ExtendedUser class to access user specific information like the lastName, firstName or userName. To access the ExtendedUser class we implement the package “uaa-authentication-user-extension”. While updating I noticed, that there is no 8.0.0 verion for that package so I used the last version available to us which is “8.0.0-pre.1”. When using this version the info about two registered UserExtensionJacksonModule beans is displayed when starting the application.

My question is, what should we do to not run into this problem? Are there alternatives to using the ExtendedUser?

We get the Extended user by calling SecurityContextHolder.getContext().getAuthentication().getPrincipal() and then type checking the return.

Thanks in advance. :slight_smile:

hi @nick-linked-tensor

In our migration note, we mentioned that uaa-authentication-user-extension artifact is renamed uaa-authentication-principal-extension please use new module name. GetA12 Login

On the other hand, you can setup code migration in your backend using OpenRewrite to support migrate the code as well. @josef-brisk-cache probably can help you in this regards.

Cheers,
Tuan Do

Hi, thanks for the quick answer. It seems like I skipped over this info.

To still use ExtendedUser I added uaa-user-management-user to the project and now it works.