Sonarlint connection to Sonarqube behind Okta

  • Operating system: macOS Ventura
  • SonarLint plugin version: 7.4.0.60471
  • Programming language you’re coding in: Typescript
  • Is connected mode used: SonarQube

And a thorough description of the problem / question:

I’m trying to connect Sonarlint to a Sonarqube instance that is behind a Okta configured gateway. This means that the Token generated in Sonarqube will not work because the gateway will not recognize the authentication and will instead redirect to Okta authentication.

Is there a way to authenticate into Okta on Sonarlint/Intellij, or any other option to workaround this issue?

This is the error I get in Intellij:

Failed to connect to the server. Please check the configuration. Cause: Unable to parse server infos from: 
   
 
 MyCompanyName
  
 
 sonarqube-1 
  
 
 
 Sign in with: 
 
 
  href="https://<company>.okta.com/oauth2/v1/authorize?client_id=0oa3xmybbmUvYg245g2g&redirect_uri=https%3A%2F%2F<company>.cloudflareaccess.com%2Fcdn-cgi%2Faccess%2Fcallback&response_type=code&scope=openid%20groups%20profile%20email&state=<token>" accesskey="1" id="idp1"> 
    
 
Okta ��� Okta

Hi @joaocpsantos

SonarLint is not able to authenticate through OAuth2 at the moment. I think this is a valid feature request, if you have the time I encourage to report your use case (with as much details as possible) here:
https://portal.productboard.com/sonarsource/4-sonarlint

And to complete my answer, you can use Okta as a SAML provider for SonarQube authentication, and it should work perfectly fine with SonarLint: