Stashing an invitation ID before redirecting to SSO #3904
-
Hi, I am using the SAML integration (without auto-signup) and I am facing the following problem: Users can start their signup flow from an invitation which is actually a dormant user account. When the user completes their signup, I need to make sure that instead of creating a new account, the dormant account is connected to the social account. To achieve this, I would like to stash and restore the invitation's ID so that's available when the signup form is submitted. I've seen the I greatly appreciate your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am wondering why you are opting for creating dormant accounts at invitation time. It for example prohibits the use case where an already existing user would want to accept an invitation. In any case, I assume you have some view serving |
Beta Was this translation helpful? Give feedback.
I am wondering why you are opting for creating dormant accounts at invitation time. It for example prohibits the use case where an already existing user would want to accept an invitation. In any case, I assume you have some view serving
/invitation/accept?id=123
. There, you could stash the ID in the session. Then, you could provide apre_social_login(self, request, sociallogin)
adapter method, where you would recover the ID from the session, lookup the dormant user, and setsociallogin.user = dormant_user
.