pub trait TokenFetching:
Interface
+ Send
+ Sync {
// Required method
fn get_connection_string<'life0, 'async_trait>(
&'life0 self,
scope: UserAccountScope,
) -> Pin<Box<dyn Future<Output = Result<FetchResponseKind<Token, String>, MappedErrors>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
Sourcefn get_connection_string<'life0, 'async_trait>(
&'life0 self,
scope: UserAccountScope,
) -> Pin<Box<dyn Future<Output = Result<FetchResponseKind<Token, String>, MappedErrors>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_connection_string<'life0, 'async_trait>(
&'life0 self,
scope: UserAccountScope,
) -> Pin<Box<dyn Future<Output = Result<FetchResponseKind<Token, String>, MappedErrors>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get token by AccountWithPermissionedRolesScope scope
This should be used to get connection strings filtering by scope containing account with permissioned roles.
Get token by RoleWithPermissionsScope scope
This should be used to get connection strings filtering by scope containing role with permissions.
Get token by TenantWithPermissionsScope scope
This should be used to get connection strings filtering by scope containing tenant with permissions.
Get token by UserAccountWithPermissionedRolesScope scope
This should be used to get connection strings filtering by scope containing user account with permissioned roles.