I am currently use sonaqube Version 6.7.6 (build 38781 and having a problem configuring the SAML.
I did follow the SAML plugin doc here, https://docs.sonarqube.org/display/PLUG/SAML+Authentication+Plugin
However I got an error when login:
You’re not authorized to access this page. Please contact the administrator.
2019.03.27 14:02:38 DEBUG web[AWm8osMveq5f4nGiAAIn][c.o.saml2.Auth] AuthNRequest sent to https://accounts400.sap.com/saml2/idp/sso/accounts.sap.com --> fZLLbsIwEEV/JfI+iQkUiBUiUegjEgUEtItuKuMMYNWxU4/Tx983hNLSBawszdzrucfjBHmhSjas3E4v4K0CdN5noTSypjEgldXMcJTINC8AmRNsOXyYsCigrLTGGWEUObFcdnBEsE4aTbxsPCCz6c1kdpdNX+Juu93t5bkf9yj1OwJin3ep8KMY+r0OQBRdbYj3BBZr74DUV9UXIFaQaXRcu7pEW7FP237UW7ViRiPW7j8Tb1zzSM1d49o5VyILQy6EqbTDDqUB8jIQpgj30aNQ5mWIaH4Vxzbx5j+o11LnUm8vU64PImT3q9Xcn8+WK+INj+Qjo7EqwC7BvksBj4vJXzKp3Qes91M3W9XkMrzeTBQKrtSai9cmJ0mT/cGaB7DpWXMSnsqSw6anddpsPDdKii/v1tiCu/MwraDVVGTubxopqzSWIORGQl4zKWU+Rha4gwFxtgLihelh6v8
What SAML provider are you using, and… shot in the dark here, are you trying to initiate the login from the Identity/SAML provider or from the SonarQube login screen?
I ask because your URL has “idp” in it, which means it’s the URL meant to be used when initating a login from the Identity Provider (rather than “sp”, or when it’s initiated from the Service Provider, in this case SonarQube).
I came across the following link, SAML IDP Initiated Login.
And I did set the login URL like https://sonar.example.com/sessions/init/saml?return_to=%2F.
However I got an error: The page you were looking for does not exist.
Hello Team,
SonarQube with IIS as proxy server integrated with saml for authentication. but still getting issue as
"You’re not authorized to access this page. Please contact the administrator.
Reason: The response was received at http://local url/oauth2/callback/saml instead of AFD domina url/oauth2/callback/saml"
also followed the SAML post still the issue persists.
Any help would be highly appreciable, struggling with this issue for last 2 days which is prod instance.