pub fn should_provision(
mode: &ProvisioningMode,
mapped_subject: &str,
allowed_domains: &[String],
) -> Result<bool>Expand description
Check if a user should be provisioned based on the provisioning mode.
Returns Ok(true) if the user should be auto-provisioned.
Returns Ok(false) if the user must already exist.
Returns Err if the user is denied by the allowlist.