Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to allow only specific domain(s) #27

Open
jawabuu opened this issue Apr 23, 2021 · 6 comments
Open

Ability to allow only specific domain(s) #27

jawabuu opened this issue Apr 23, 2021 · 6 comments

Comments

@jawabuu
Copy link

jawabuu commented Apr 23, 2021

Hey @max-wittig @ercanucan
Is there capability to only allow access for users with specific domains?
How would one configure this?
This should be useful for example Public Gitlab provider and you would only want users from @dom.a.in to login.
I see from the initial commit that this was removed

        if domain in DOMAIN_BLOCKLIST:
            return helper.error(ERR_INVALID_DOMAIN % (domain,))

        if self.domains and domain not in self.domains:
            return helper.error(ERR_INVALID_DOMAIN % (domain,))
@max-wittig
Copy link
Member

We removed this, because sentry removed it. We're trying to follow the sentry-google-auth plugin as closely as possible to avoid additional work and until now nobody requested this feature.

I'm not sure, if we should diverge from this philosophy. WDYT? @bufferoverflow

@jawabuu
Copy link
Author

jawabuu commented Apr 23, 2021

@jawabuu
Copy link
Author

jawabuu commented Apr 23, 2021

@max-wittig
Copy link
Member

Mhmm interesting. Then I guess, we may have deleted it by accident.

@jawabuu I would be happy to review any MR regarding this then.

@jawabuu
Copy link
Author

jawabuu commented Apr 23, 2021

@max-wittig Thanks.
Do you by any chance have any sentry docker images containing sentry-auth-oidc. If not would you be willing to publish?

@jawabuu
Copy link
Author

jawabuu commented Apr 23, 2021

@max-wittig @ercanucan
Drawing from these

  1. Allowing multiple domains for google SSO
    Support multiple domains on the backend getsentry/sentry-auth-google#13

  2. Configuring the domains for SSO
    SSO with multiple domains getsentry/self-hosted#2894

I have created this simple PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants