mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-24 04:57:00 +01:00
* adding some test coverage because there was some rando panic-inducing thing * ldap constants * documenting a macro * helpful weird errors * the war on strings continues * less json more better * testing things fixing bugs * idm_domain_reset_token_key wasn't working, added a test and fixed it (we weren't testing it) * idm_domain_set_ldap_basedn - adding tests * adding testing for idm_account_credential_update_cancel_mfareg * warning of deprecation
19 lines
559 B
Rust
19 lines
559 B
Rust
use crate::{ClientError, KanidmClient};
|
|
use kanidm_proto::scim_v1::{ScimSyncRequest, ScimSyncState};
|
|
|
|
impl KanidmClient {
|
|
// TODO: testing for this
|
|
pub async fn scim_v1_sync_status(&self) -> Result<ScimSyncState, ClientError> {
|
|
self.perform_get_request("/scim/v1/Sync").await
|
|
}
|
|
|
|
// TODO: testing for this
|
|
pub async fn scim_v1_sync_update(
|
|
&self,
|
|
scim_sync_request: &ScimSyncRequest,
|
|
) -> Result<(), ClientError> {
|
|
self.perform_post_request("/scim/v1/Sync", scim_sync_request)
|
|
.await
|
|
}
|
|
}
|