Struct kanidm_client::asynchronous::KanidmAsyncClient [−][src]
pub struct KanidmAsyncClient { /* fields omitted */ }
Implementations
pub async fn auth_step_backup_code(
&self,
backup_code: &str
) -> Result<AuthResponse, ClientError>
pub async fn auth_step_webauthn_complete(
&self,
pkc: PublicKeyCredential
) -> Result<AuthResponse, ClientError>
pub async fn auth_simple_password(
&self,
ident: &str,
password: &str
) -> Result<(), ClientError>
pub async fn auth_password_totp(
&self,
ident: &str,
password: &str,
totp: u32
) -> Result<(), ClientError>
pub async fn auth_password_backup_code(
&self,
ident: &str,
password: &str,
backup_code: &str
) -> Result<(), ClientError>
pub async fn auth_webauthn_begin(
&self,
ident: &str
) -> Result<RequestChallengeResponse, ClientError>
pub async fn auth_webauthn_complete(
&self,
pkc: PublicKeyCredential
) -> Result<(), ClientError>
pub async fn idm_group_get_members(
&self,
id: &str
) -> Result<Option<Vec<String>>, ClientError>
pub async fn idm_group_set_members(
&self,
id: &str,
members: &[&str]
) -> Result<(), ClientError>
pub async fn idm_group_add_members(
&self,
id: &str,
members: &[&str]
) -> Result<(), ClientError>
pub async fn idm_group_remove_members(
&self,
group: &str,
members: &[&str]
) -> Result<(), ClientError>
pub async fn idm_group_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>
) -> Result<(), ClientError>
pub async fn idm_account_set_displayname(
&self,
id: &str,
dn: &str
) -> Result<(), ClientError>
pub async fn idm_account_unix_token_get(
&self,
id: &str
) -> Result<UnixUserToken, ClientError>
pub async fn idm_account_add_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
pub async fn idm_account_set_attr(
&self,
id: &str,
attr: &str,
values: &[&str]
) -> Result<(), ClientError>
pub async fn idm_account_get_attr(
&self,
id: &str,
attr: &str
) -> Result<Option<Vec<String>>, ClientError>
pub async fn idm_account_primary_credential_set_password(
&self,
id: &str,
pw: &str
) -> Result<SetCredentialResponse, ClientError>
pub async fn idm_account_primary_credential_import_password(
&self,
id: &str,
pw: &str
) -> Result<(), ClientError>
pub async fn idm_account_primary_credential_set_generated(
&self,
id: &str
) -> Result<String, ClientError>
pub async fn idm_account_primary_credential_generate_totp(
&self,
id: &str
) -> Result<(Uuid, TotpSecret), ClientError>
pub async fn idm_account_primary_credential_verify_totp(
&self,
id: &str,
otp: u32,
session: Uuid
) -> Result<(), ClientError>
pub async fn idm_account_primary_credential_accept_sha1_totp(
&self,
id: &str,
session: Uuid
) -> Result<(), ClientError>
pub async fn idm_account_primary_credential_remove_totp(
&self,
id: &str
) -> Result<(), ClientError>
pub async fn idm_account_primary_credential_register_webauthn(
&self,
id: &str,
label: &str
) -> Result<(Uuid, CreationChallengeResponse), ClientError>
pub async fn idm_account_primary_credential_complete_webuthn_registration(
&self,
id: &str,
rego: RegisterPublicKeyCredential,
session: Uuid
) -> Result<(), ClientError>
pub async fn idm_account_primary_credential_remove_webauthn(
&self,
id: &str,
label: &str
) -> Result<(), ClientError>
pub async fn idm_account_primary_credential_generate_backup_code(
&self,
id: &str
) -> Result<Vec<String>, ClientError>
pub async fn idm_account_primary_credential_remove_backup_code(
&self,
id: &str
) -> Result<(), ClientError>
pub async fn idm_account_get_credential_status(
&self,
id: &str
) -> Result<CredentialStatus, ClientError>
pub async fn idm_account_radius_credential_get(
&self,
id: &str
) -> Result<Option<String>, ClientError>
pub async fn idm_account_radius_credential_regenerate(
&self,
id: &str
) -> Result<String, ClientError>
pub async fn idm_account_radius_token_get(
&self,
id: &str
) -> Result<RadiusAuthToken, ClientError>
pub async fn idm_account_unix_extend(
&self,
id: &str,
gidnumber: Option<u32>,
shell: Option<&str>
) -> Result<(), ClientError>
pub async fn idm_account_unix_cred_put(
&self,
id: &str,
cred: &str
) -> Result<(), ClientError>
pub async fn idm_account_unix_cred_verify(
&self,
id: &str,
cred: &str
) -> Result<Option<UnixUserToken>, ClientError>
pub async fn idm_account_post_ssh_pubkey(
&self,
id: &str,
tag: &str,
pubkey: &str
) -> Result<(), ClientError>
pub async fn idm_account_person_extend(
&self,
id: &str,
mail: Option<&[String]>,
legalname: Option<&str>
) -> Result<(), ClientError>
pub async fn idm_account_get_ssh_pubkey(
&self,
id: &str,
tag: &str
) -> Result<Option<String>, ClientError>
pub async fn idm_account_delete_ssh_pubkey(
&self,
id: &str,
tag: &str
) -> Result<(), ClientError>
pub async fn idm_schema_attributetype_get(
&self,
id: &str
) -> Result<Option<Entry>, ClientError>
pub async fn idm_oauth2_rs_basic_create(
&self,
name: &str,
displayname: &str,
origin: &str
) -> Result<(), ClientError>
pub async 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 async fn idm_oauth2_rs_create_scope_map(
&self,
id: &str,
group: &str,
scopes: Vec<&str>
) -> Result<(), ClientError>
pub async fn idm_oauth2_rs_delete_scope_map(
&self,
id: &str,
group: &str
) -> Result<(), ClientError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for KanidmAsyncClient
impl Send for KanidmAsyncClient
impl Sync for KanidmAsyncClient
impl Unpin for KanidmAsyncClient
impl !UnwindSafe for KanidmAsyncClient
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