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