Skip to content

Stashing an invitation ID before redirecting to SSO #3904

Answered by pennersr
alexanderjulmer asked this question in Q&A
Discussion options

You must be logged in to vote

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 a pre_social_login(self, request, sociallogin) adapter method, where you would recover the ID from the session, lookup the dormant user, and set sociallogin.user = dormant_user.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexanderjulmer
Comment options

Answer selected by alexanderjulmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants