Sonarqube Enterprise Edition Version 9.6.1 (build 59531)
Issue details:
Login via Okta Dashboard, sonarqube tile:
when we click the sonarqube tile in Okta to login and start using the application it gives the following:
Okta tile gives unauthorised access: “You’re not authorised to access this page. Please contact the administrator.”
we tried recording what’s the URL it’s using, found that
it starts with
SAML login url (?fromHome=true)<— URL from Okta tile
https://$host/oauth2/callback/saml <— SAML redirect
https://$host/sessions/unauthorized <— it stops here
Login via sonarqube default landing page:
whereas if we instead of going through Okta, visit sonarqube application URL directly it asks us to Login and
when we click the button “Log in with Okta” it works seamlessly.
we tried recording what’s the URL it’s using, found that
it starts with
SAML login url ( ?SAMLRequest=&RelayState=)<— URL from Sonar default page login
question is we have checked the following and our configuration is fine
but why does it behave differently when we click through OKTA tile or Sonarqube’s login with Okta button?