Trait azure_core::auth::TokenCredential
source · [−]pub trait TokenCredential: Send + Sync {
fn get_token<'life0, 'life1, 'async_trait>(
&'life0 self,
resource: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<TokenResponse, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Represents a credential capable of providing an OAuth token.