pub struct InviteConfig {
pub mode: InviteMode,
pub lifetime: u32,
pub clean_interval: (u32, u32),
pub claims: Option<Vec<Field>>,
}Fields§
§mode: InviteMode§lifetime: u32How long a token is valid for.
Defaults to 7 days.
clean_interval: (u32, u32)On what interval to clean up expired token ids.
Defaults to 30 - 90 seconds.
claims: Option<Vec<Field>>Values that can be used internally in the admin server to
set default permissions for new accounts.
TODO: in the future, these can also be set in order to pre-validate
TODO: or constrain app account registrations. This will require the
TODO: use of an InviteCreate action trigger (for validating and setting
TODO: the invite token claims), and a pre-registration InviteValidate,
TODO: as well as passing the invite token claims to the Registration trigger
TODO: (allowing for the validated invite claims to be used in the account
TODO: claims setting operation).
Note: idx starts at 1 to create space for system claims (id, domain, and account).
Trait Implementations§
Source§impl Clone for InviteConfig
impl Clone for InviteConfig
Source§fn clone(&self) -> InviteConfig
fn clone(&self) -> InviteConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more