SaltDns. Accounts. Invitation
(Salt v1.0.0)
An invitation for an e-mail address that has no Salt user yet. It names the
organisation and the role the person gets. It is used at the person's first
sign-in through the identity provider when
SALT_DNS_OIDC_AUTO_CREATE=invited (SaltDns.Accounts.Invitations).
The row is also the record of who invited, who revoked and when: nothing is deleted.
Summary
Functions
The form an address is kept and compared in: trimmed, ASCII only, ASCII
lower case. :error for anything with a byte outside the printable ASCII
range (letters from other scripts, full-width letters, the Kelvin sign):
such an address is never invited and never matches an invitation. An
internationalised domain is written in punycode (xn--...) and matches
only the identical punycode.
How many days an invitation stays valid.
Types
@type t() :: %SaltDns.Accounts.Invitation{ __meta__: term(), accepted_at: term(), accepted_user: term(), accepted_user_id: term(), email: term(), expires_at: term(), id: term(), inserted_at: term(), invited_by: term(), invited_by_id: term(), organisation: term(), organisation_id: term(), revoked_at: term(), revoked_by: term(), revoked_by_id: term(), role: term() }
Functions
The form an address is kept and compared in: trimmed, ASCII only, ASCII
lower case. :error for anything with a byte outside the printable ASCII
range (letters from other scripts, full-width letters, the Kelvin sign):
such an address is never invited and never matches an invitation. An
internationalised domain is written in punycode (xn--...) and matches
only the identical punycode.
@spec validity_days() :: pos_integer()
How many days an invitation stays valid.