User not allowed to authenticate with gitlab

User that was working before suddenly can no longer login. Authentication works for some other users, but this specific user only gets this error message when trying to login.

image

  • which versions are you using:

Sonarqube: sonarqube-10.5.1.90531
Gitlab: 16.11

  • how is SonarQube deployed: zip

  • what are you trying to achieve: I want to make sure this specific user can login

  • what have you tried so far to achieve this:

I tried tailing the log files, but there is nothing. I’ve also tried google search “sonarqube gitlab Reason: You are not allowed to authenticate” and it didn’t give me any meaningful results.

EDIT: If I set logging level to DEBUG I get one line in web.log:

2024.08.07 14:52:27 DEBUG web[4b25a012-e33c-4ab3-87a9-da52265321b5][auth.event] login failure [cause|You are not allowed to authenticate][method|OAUTH2][provider|EXTERNAL|GitLab][IP|0:0:0:0:0:0:0:1|][login|]

But it complains about the same thing. “not allowed to authenticate” what could this mean? Why would the user not be allowed to authenticate?

Hi!

Can you confirm the user is able to authenticate with GitLab directly?

Best regards.

Yes I can confirm that.

Also I have admin rights on gitlab so I can impersonate that user. I get the same error when I try to login to sonarqube when impersonating that user.

Hi,

The message that’s showing up in your server log is coming from GitLab. I believe that’s why Antonio asked if the user could auth directly.

Since this was working, and - I assume - you didn’t change anything on the SQ side, I suppose this is something to take up with the GitLab admins…?

 
Ann

Sorry guys. I don’t know how I ended up fixing this. Might have been the issue with elasticsearch or something on the gitlab side.

I’m closing this topic.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.