Struct kanidm_client::KanidmClient [−][src]
pub struct KanidmClient { /* fields omitted */ }
Implementations
pub fn auth_step_webauthn_complete(
&self,
pkc: PublicKeyCredential
) -> Result<AuthResponse, ClientError>
pub fn auth_password_totp(
&self,
ident: &str,
password: &str,
totp: u32
) -> Result<(), ClientError>
pub fn auth_password_backup_code(
&self,
ident: &str,
password: &str,
backup_code: &str
) -> Result<(), ClientError>
pub fn auth_webauthn_begin(
&self,
ident: &str
) -> Result<RequestChallengeResponse, ClientError>
pub fn idm_group_remove_members(
&self,
group: &str,
members: &[&str]
) -> Result<(), ClientError>
pub fn idm_group_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>
) -> Result<(), ClientError>
pub fn idm_account_get_attr(
&self,
id: &str,
attr: &str
) -> Result<Option<Vec<String>>, ClientError>
pub fn idm_account_primary_credential_set_password(
&self,
id: &str,
pw: &str
) -> Result<SetCredentialResponse, ClientError>
pub fn idm_account_add_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
pub fn idm_account_set_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_import_password(
&self,
id: &str,
pw: &str
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_set_generated(
&self,
id: &str
) -> Result<String, ClientError>
pub fn idm_account_primary_credential_generate_totp(
&self,
id: &str
) -> Result<(Uuid, TotpSecret), ClientError>
pub fn idm_account_primary_credential_verify_totp(
&self,
id: &str,
otp: u32,
session: Uuid
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_accept_sha1_totp(
&self,
id: &str,
session: Uuid
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_register_webauthn(
&self,
id: &str,
label: &str
) -> Result<(Uuid, CreationChallengeResponse), ClientError>
pub fn idm_account_primary_credential_complete_webuthn_registration(
&self,
id: &str,
rego: RegisterPublicKeyCredential,
session: Uuid
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_remove_webauthn(
&self,
id: &str,
label: &str
) -> Result<(), ClientError>
pub fn idm_account_primary_credential_generate_backup_code(
&self,
id: &str
) -> Result<Vec<String>, ClientError>
pub fn idm_account_primary_credential_remove_backup_code(
&self,
id: &str
) -> Result<(), ClientError>
pub fn idm_account_get_credential_status(
&self,
id: &str
) -> Result<CredentialStatus, ClientError>
pub fn idm_account_radius_credential_get(
&self,
id: &str
) -> Result<Option<String>, ClientError>
pub fn idm_account_radius_credential_regenerate(
&self,
id: &str
) -> Result<String, ClientError>
pub fn idm_account_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>,
shell: Option<&str>
) -> Result<(), ClientError>
pub fn idm_account_unix_cred_verify(
&self,
id: &str,
cred: &str
) -> Result<Option<UnixUserToken>, ClientError>
pub fn idm_account_post_ssh_pubkey(
&self,
id: &str,
tag: &str,
pubkey: &str
) -> Result<(), ClientError>
pub fn idm_account_person_extend(
&self,
id: &str,
mail: Option<&[String]>,
legalname: Option<&str>
) -> Result<(), ClientError>
pub fn idm_account_get_ssh_pubkey(
&self,
id: &str,
tag: &str
) -> Result<Option<String>, ClientError>
pub fn idm_oauth2_rs_basic_create(
&self,
name: &str,
displayname: &str,
origin: &str
) -> Result<(), ClientError>
pub fn idm_oauth2_rs_update(
&self,
id: &str,
name: Option<&str>,
displayname: Option<&str>,
origin: Option<&str>,
scopes: Option<Vec<&str>>,
reset_secret: bool,
reset_token_key: bool,
reset_sign_key: bool
) -> Result<(), ClientError>
pub fn idm_oauth2_rs_create_scope_map(
&self,
id: &str,
group: &str,
scopes: Vec<&str>
) -> Result<(), ClientError>
pub fn idm_oauth2_rs_delete_scope_map(
&self,
id: &str,
group: &str
) -> Result<(), ClientError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for KanidmClient
impl Send for KanidmClient
impl Sync for KanidmClient
impl Unpin for KanidmClient
impl !UnwindSafe for KanidmClient
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more