SAML auth failing with error "You're not authorized to access this page. Please contact the admin"

Hello All,

We have implemented SAML Configuration, But we are getting below issue even after apply SAML.

image

is there any configuration is missed from my side ?

Hey there.

Your post is missing some important information – like what version of SonarQube are you using?

And what do the logs say?

Hello Colin,
Thanks for reply for the same.
here is my version number : * Developer Edition * Version 9.5 (build 56709)

Here is the logs i can see,

2022.08.29 15:57:36 ERROR web[AYLQ9wVVg0x+a3AnA/mb][c.o.s.a.SamlResponse] https://sonarqube.ttec.com is not a valid audience for this Response
2022.08.29 15:57:36 ERROR web[AYLQ9wVVg0x+a3AnA/mb][c.o.saml2.Auth] processResponse error. invalid_response

This implies a mismatch between what is set for sonar.auth.saml.applicationId and what is set in your SAML provider configuration (typically what’s called the the Audience URI or Entity ID). These need to match.