The current invite system creates a new account and provides a recovery link.
This creates a lot of accounts on accident. How ever has access to the link also has access to the account for a short time.
goal
Use registration flow/api for invites. But guard it with an registration token. Which is invalidated after one use.
tasks
[x] guard self registration with an static invite token
[x] allow users to create an invite toke
[x] invalidate invite token after success full registration
[x] allow users to revoke invite tokens
[ ] #9
[ ] #10
[ ] #11
design
checking invites
proxy for POST /self-service/registration (this is the endpoint responsible for registering the account)
the proxy checks if the invite is valid
the proxy invalidates the invite if the registration was successful
invites
invites could be stored in keto, my app already uses keto and than there is no extra db requirement
current
The current invite system creates a new account and provides a recovery link. This creates a lot of accounts on accident. How ever has access to the link also has access to the account for a short time.
goal
Use registration flow/api for invites. But guard it with an registration token. Which is invalidated after one use.
tasks
design