# עקיפת SSO על ידי הוספת אימייל לא ידוע לקבוצה

**URL:** <https://meta.discourse.org/t/bypass-sso-by-adding-unknown-email-to-group/177339>\
**Category:** Bug\
**Created:** [26 בינואר,‏ 2021,‏ 5:23pm UTC](https://meta.discourse.org/t/bypass-sso-by-adding-unknown-email-to-group/177339 "2021-01-26T17:23:19Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Grayden\_Shand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grayden_shand/32/166586_2.png) [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)\
**Post date:** [1 במרץ,‏ 2021,‏ 2:47pm UTC](https://meta.discourse.org/t/bypass-sso-by-adding-unknown-email-to-group/177339/13 "2021-03-01T14:47:20Z")

</div>

> [@sam](#):
>
> Would you be able to use invite links then for your use case? That way it does not email anyone and you have an expiry date.

I don’t think so, but maybe I’m not understanding the question correctly. Let me explain how we use Discourse, the SSO feature, and why I originally bumped into this bug..

We run an e-learning platform that uses a temporary discourse for each session of each workshop (course).

We use SSO with a custom auth system for two reasons:

1. so that a user only needs to create one set of credentials to access any course they’ve registered for.
2. to enforce policies on who is allowed in to each discourse based on arbitrary data in our database. For example in our [discourse SSO](https://meta.discourse.org/t/13045?silent=true) endpoint, we check to make sure the user has a valid registration and that the date is within the bounds of our opening and closing dates.

I ran into this bug above when we wanted to create a group in one workshop only for people who were in a different one (like an alumni group). So I added the full class list from the different workshop to the bulk add modal, and accidentally sent invites to everyone on that list who hadn’t registered for the current workshop.

So, we really never would use the invite feature in Discourse (whether it’s by link or by email). If we did want an invite feature, we’d likely have to build it ourselves because there’s some business logic we’d want to layer on top of any invites we sent out. For example, if the workshop enrollment period was closed we’d want to display an error message on the link. Or maybe we’d want to include a discount in the link.

All this is to say that it works if we don’t have to use it, but we would really like to not have to worry about inadvertently sending emails to people without an account in that Discourse.

---

_[View the full topic](https://meta.discourse.org/t/bypass-sso-by-adding-unknown-email-to-group/177339)._
