AsyncAuthenticationServiceV2

Trait AsyncAuthenticationServiceV2 

Source
pub trait AsyncAuthenticationServiceV2 {
    // Required methods
    fn get_my_profile(
        &self,
        auth_: BearerToken,
    ) -> impl Future<Output = Result<UserV2, Error>> + Send;
    fn update_my_profile(
        &self,
        auth_: BearerToken,
        update_my_profile_request: UpdateMyProfileRequest,
    ) -> impl Future<Output = Result<UserV2, Error>> + Send;
    fn get_my_settings(
        &self,
        auth_: BearerToken,
    ) -> impl Future<Output = Result<UserSettings, Error>> + Send;
    fn update_my_settings(
        &self,
        auth_: BearerToken,
        user_settings: UserSettings,
    ) -> impl Future<Output = Result<UserSettings, Error>> + Send;
    fn get_my_org_settings(
        &self,
        auth_: BearerToken,
    ) -> impl Future<Output = Result<OrgSettings, Error>> + Send;
    fn update_my_org_settings(
        &self,
        auth_: BearerToken,
        org_settings: OrgSettings,
    ) -> impl Future<Output = Result<OrgSettings, Error>> + Send;
    fn search_users_v2(
        &self,
        auth_: BearerToken,
        request: SearchUsersRequest,
    ) -> impl Future<Output = Result<SearchUsersResponseV2, Error>> + Send;
    fn get_users(
        &self,
        auth_: BearerToken,
        user_rids: BTreeSet<UserRid>,
    ) -> impl Future<Output = Result<BTreeSet<UserV2>, Error>> + Send;
    fn get_user(
        &self,
        auth_: BearerToken,
        user_rid: UserRid,
    ) -> impl Future<Output = Result<UserV2, Error>> + Send;
    fn get_jwks(&self) -> impl Future<Output = Result<Jwks, Error>> + Send;
}
Expand description

This service provides operations for managing user and org profiles/settings. Its name is a bit of a misnomer.

Required Methods§

Source

fn get_my_profile( &self, auth_: BearerToken, ) -> impl Future<Output = Result<UserV2, Error>> + Send

Gets the profile of the authenticated user.

Source

fn update_my_profile( &self, auth_: BearerToken, update_my_profile_request: UpdateMyProfileRequest, ) -> impl Future<Output = Result<UserV2, Error>> + Send

Updates the profile of the authenticated user.

Source

fn get_my_settings( &self, auth_: BearerToken, ) -> impl Future<Output = Result<UserSettings, Error>> + Send

Gets the settings of the authenticated user.

Source

fn update_my_settings( &self, auth_: BearerToken, user_settings: UserSettings, ) -> impl Future<Output = Result<UserSettings, Error>> + Send

Updates the settings of the authenticated user.

Source

fn get_my_org_settings( &self, auth_: BearerToken, ) -> impl Future<Output = Result<OrgSettings, Error>> + Send

Gets the settings of the org of the authenticated user.

Source

fn update_my_org_settings( &self, auth_: BearerToken, org_settings: OrgSettings, ) -> impl Future<Output = Result<OrgSettings, Error>> + Send

Updates the settings of the org of the authenticated user.

Source

fn search_users_v2( &self, auth_: BearerToken, request: SearchUsersRequest, ) -> impl Future<Output = Result<SearchUsersResponseV2, Error>> + Send

Searches for users by email and displayName.

Source

fn get_users( &self, auth_: BearerToken, user_rids: BTreeSet<UserRid>, ) -> impl Future<Output = Result<BTreeSet<UserV2>, Error>> + Send

Get users by RID.

Source

fn get_user( &self, auth_: BearerToken, user_rid: UserRid, ) -> impl Future<Output = Result<UserV2, Error>> + Send

Gets a user by RID.

Source

fn get_jwks(&self) -> impl Future<Output = Result<Jwks, Error>> + Send

Returns JWKS (JSON Web Key Set) for MediaMTX JWT verification. Only available if MediaMTX integration is enabled.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§