vaulttec/sonar-auth-oidc

Ungültiger Parameter: redirect_uri

Closed this issue · 1 comments

When accessing our sonarqube instance we get redirected to Keycloak but receive the error message from title: Ungültiger Parameter: redirect_uri

Problem here is, that the redirect_uri looks like this:

https://.../protocol/openid-connect/auth?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2Foauth2%2Fcallback%2Foidc&state=...&client_id=...&scope=openid+email+profile

I figured out that it redirects to http://localhost:9000/oauth/callback/oidc if I enter an asterisk * into "Valid Redirect URIs" field. Sonarqube itself is deployed with the official docker container behind a Traefik reverse proxy. Maybe there is something else I need to adjust to make this plugin work? Would be nice if you can point me to a proxy related documentation/adjustment which is required for this plugin/sonarqube.

Nevermind, there is a setting at: Administration > General > General called sonar.core.serverBaseURL. After that the correct redirect is done.