fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

Support invite codes

Open mooreds opened this issue 3 years ago • 4 comments

Support invite codes

Problem

I want the ability to require an invite code for user registration.

Solution

Have a way to set up invite codes. These could be tied to a user or an application. Would be nice to have a number associated with them (so that, say, 10 people could use invite code 'dan' and 20 people could use invite code 'foo', but no more). Have a setting per application on whether to require an invite code.

When a user registers with the hosted login pages, require them to provide a valid invite code. If they don't have one or it has been fully used, provide the appropriate error message.

Alternatives/workarounds

  • You can code this all up yourself using the Login API.
  • https://fusionauth.io/community/forum/topic/2650/how-to-implement-user-invitation uses self service registration lambdas

Additional context

Submitted this because this real world community uses invite codes: https://www.indiehackers.com/post/whats-new-indie-hackers-is-now-invite-only-cfed6a6a67

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

mooreds avatar Aug 03 '21 13:08 mooreds

Seen on https://fusionauth.io/community/forum/topic/1351/send-additional-params-to-identity-providers-link/4?_=1636749387444

jobannon avatar Nov 12 '21 20:11 jobannon

Here's another option: https://fusionauth.io/community/forum/topic/2650/how-to-implement-user-invitation

mooreds avatar Apr 10 '24 13:04 mooreds

I mean this is workaround not a feature, also it does require quite a few steps, for something that is quite a straight forward practice

th30d0r avatar Apr 10 '24 14:04 th30d0r

@th30d0r You are correct. I can't see whether or not you upvoted this issue, but if not, please do so.

mooreds avatar Apr 10 '24 16:04 mooreds