Allow admin login with Azure AD SSO enabled
Version
22.9.0
Problem Statement
We use Terraform to spin up our Sentry installation and as part of Terraform code we use custom script to generate Auth token to further expose it to Sentry Terraform Provider.
If SSO is not enabled the script uses initial admin credentials to make required API calls to Sentry. Once SSO takes place admin credentials are not working.
Solution Brainstorm
Would be helpful for our case to be able to access sentry with existing user when SSO enabled. Maybe there is some flag which will allow us to enable it?
Ah, just to confirm, the login screen is not appearing in this case? You're not able to enter in username and password?
Yes, that is right. Only "Login with Azure" button
Sounds good, put this on the backlog for now to investigate
Related issue: https://github.com/getsentry/self-hosted/issues/1749
Same here with google sso enabled. Once sso is enabled, there is no way to login as an admin.
I'm not sure Sentry devs are going to fix it. Right now you can achieve it by overriding the https://github.com/getsentry/sentry/blob/master/src/sentry/templates/sentry/organization-login.html template. For example, replace it with your own during docker image build for sentry image
@vladarts I should note that it's not html rendering issue, it's about certain api endpoints not being available when trying to login with admin credentials in automations with SSO enabled.