Skip to content

Invites #4

@AlfioEmanueleFresta

Description

@AlfioEmanueleFresta
  • Create an Invite model
  • Add relevant fields to Responsibility model, e.g.
    • can_invite, whether users having a role with this responsibility are allowed to invite other users (false for volunteers, true for presidents)
    • can_be_invited, whether users having permissions to invite others, as well as having this responsibility, can invite others to also have this role (e.g. true for fleet managers to be able to invite other fleet managers, false to disallow volunteers from inviting other volunteers).
  • Create an invite scope which is granted to users having a role with can_invite equal to True
  • Provide a private REST endpoint to initiate invites. This should require a invite-scoped access token, and should return a one-time URI. The relying party should redirect the user to this URI to continue with the invite process. The user should be presented with a view to invite a user by email (and possibly by phone number, in the future). Once to form is filled in, the user should be redirected to one of the relying party's redirect URI.
  • Send an invite via email, and allow users to sign up (or sign in) and accept an invite. Any relevant roles associated to the invite should be assigned to the user.
  • Tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions