Hi,
we are using the Docker image for SonarQube Developer Edition 2025.1 (LTA), using Gitlab OAuth. Our user - let’s say “Tim Banks” - can’t login. I checked Gitlab - he is already member of the correct Gitlab group.
When the user tried to log in via Gitlab, web.log showed
DEBUG web[39ce5370-d1e3-4f62-b656-4569570359dd][auth.event] login failure [cause|Failed to authenticate with login 'TimBanks'][method|OAUTH2][provider|EXTERNAL|GitLab][IP|<IP>|<IP>][login|TimBanks]
I then deactivated the user (without deleting the user’s personal information) and the tried to reactivate, however I couldn’t find a way to do this. So I created a local user with the same userId and email address. Then I could see this entry in web.log
DEBUG web[3a1500c1-ae18-99d9-b85c-c36d9334a0a3][o.s.s.u.NewUserNotifier] User created: TimBanks. Notifying NewUserHandler handlers...
The user tried to log in again, but it still didn’t work, now showing a different error
DEBUG web[45db6731-044c-4fa7-b26c-244c94b608c0][auth.event] login failure [cause|Email 'tim.banks@<domain>' is already used][method|OAUTH2][provider|EXTERNAL|GitLab][IP|<IP>|<IP>][login|TimBanks]
Using the password, the login works
DEBUG web[8d25781a-5123-4c66-b8ce-79cb2c28b717][auth.event] login success [method|FORM][provider|LOCAL|local][IP|<IP>|<IP>][login|TimBanks]
However, this is only a work around. I need the user to log in with Gitlab only. The user Tim Banks was created about 5 years ago, with no login for about 4 years (“Last connection”) until now. I noticed that there was no number appended to the userId, unlike our other userIds. It seems to me like a bug in SonarQube.