Search code examples
gitlabsonarqube

Gitlab Sonar Qube Redirect Url


I have a problem with authorization in Sonar Qube with Gitlab. The error is "The redirect URI included is not valid. ".My Sonar Qube is hosted on Azure VM Ubuntu. When I open the network in the browser I see that the redirect URL is "redirect_uri: http://localhost:9000/oauth2/callback/gitlab".Why in Gitlab Applications I put http://mysonarcubeIP/oauth2/callback/gitlab.Sonar Qube is community and Gitlab also.


Solution

  • In version 8.7 (the version we have), the redirect URL is controlled by the Server Base URL, key sonar.core.serverBaseURL. The description of the field mentions being used in the construction of emails, but it is also used as the callback.

    You can find it in the "General" tab of the settings.