Invites compatibility with SSO

AI-generated summary

The discussion addresses the incompatibility between Discourse’s Invite feature and Single Sign-On (SSO), where invites traditionally bypass parent site authentication methods vinothkannans. vinothkannans proposes a solution where, instead of activating users directly on Discourse, the invitation email is sent to the parent site as an SSO payload. This would allow the parent site to decide whether to activate the user instantly or require additional signup steps, maintaining the standard return of user fields with the original nonce. sam notes this issue affects enterprise customers like McNeel and references a suggestion by @BrianGillespie to simply send an email and bypass account staging entirely. vinothkannans adds that passing the email address to the SSO payload would be particularly helpful in this workflow.

First of all I am not requesting for Invites feature which is currently not compatible when SSO enabled. I just got a thought to have Invites feature working even if SSO enabled. So am just sharing it and looking for others view.

As per @codinghorror’s above post the problem with invite feature is it will bypass the parent site authentication methods when we use SSO.

Here instead of activating new user’s invitation on discourse itself can we send it to parent site as sso payload?

Currently parent sites are returning external id, username, email address, etc.. in payload to discourse with original nonce. With this same mechanism can discourse send invited email address to parent site with nonce when a new user accept the signup invitation? So the parent site can decide whether activate the user instantly using only email address or requesting user to compete more signup steps.

After all parent site should return the user fields with original nonce to discourse as always.

I don’t know how much it is possible. If you have questions with my thought please feel free to ask.

1 curtida

This did pop up on McNeel (an enterprise customer)

@BrianGillespie suggested we simply just send an email and bypass account staging.

3 curtidas

additionally if the email address passed to sso though payload it will be very helpful.