Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [User] Fixed bugs on duplicate external SSO users creation and update #4188

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

Agnul97
Copy link
Contributor

@Agnul97 Agnul97 commented Feb 4, 2025

There were some problems when trying to create an already existing external user with the same externalUsername parameter: the back-end was allowing the operation. Other than that, It was not possible to update an external username, for example changing its e-mail, because the back-end was complaining about an already present user in the system.

I solved the issue changing the Userservice accordingly: other than fixing a method reference to findByExternalId that needed to be findByExternalUsername, I fixed the logic of searching duplicate users by externalIds and externalUsernames

…gic to find duplicate external users on datastore
@Coduz Coduz changed the title 🐛: [Users-SSO] - Fixed bugs on duplicate external users creation and update 🐛 [User] Fixed bugs on duplicate external SSO users creation and update Feb 11, 2025
@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Feb 11, 2025
@Coduz Coduz merged commit 68281bd into eclipse-kapua:develop Feb 11, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants