self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Allow admin login with Azure AD SSO enabled

Open begemotik opened this issue 3 years ago • 8 comments

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?

begemotik avatar Oct 07 '22 11:10 begemotik

Related issue

begemotik avatar Oct 07 '22 11:10 begemotik

Ah, just to confirm, the login screen is not appearing in this case? You're not able to enter in username and password?

hubertdeng123 avatar Oct 07 '22 15:10 hubertdeng123

Yes, that is right. Only "Login with Azure" button

begemotik avatar Oct 07 '22 17:10 begemotik

Sounds good, put this on the backlog for now to investigate

hubertdeng123 avatar Oct 11 '22 18:10 hubertdeng123

Related issue: https://github.com/getsentry/self-hosted/issues/1749

afaianswq avatar Oct 20 '22 03:10 afaianswq

Same here with google sso enabled. Once sso is enabled, there is no way to login as an admin.

hyunysmile avatar Apr 18 '23 11:04 hyunysmile

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 avatar Jul 24 '23 15:07 vladarts

@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.

begemotik avatar Aug 15 '23 11:08 begemotik