Struct azure_identity::AzureCliCredential
source · pub struct AzureCliCredential { /* private fields */ }
Expand description
Enables authentication to Azure Active Directory using Azure CLI to obtain an access token.
Implementations§
source§impl AzureCliCredential
impl AzureCliCredential
sourcepub fn get_subscription() -> Result<String>
pub fn get_subscription() -> Result<String>
Returns the current subscription ID from the Azure CLI.
sourcepub fn get_tenant() -> Result<String>
pub fn get_tenant() -> Result<String>
Returns the current tenant ID from the Azure CLI.
Trait Implementations§
source§impl Debug for AzureCliCredential
impl Debug for AzureCliCredential
source§impl Default for AzureCliCredential
impl Default for AzureCliCredential
source§impl TokenCredential for AzureCliCredential
impl TokenCredential for AzureCliCredential
source§fn clear_cache<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_cache<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clear the credential’s cache.
source§fn get_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str]
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scopes: &'life1 [&'life2 str]
) -> Pin<Box<dyn Future<Output = Result<AccessToken>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Gets a
AccessToken
for the specified resourceAuto Trait Implementations§
impl !RefUnwindSafe for AzureCliCredential
impl Send for AzureCliCredential
impl Sync for AzureCliCredential
impl Unpin for AzureCliCredential
impl UnwindSafe for AzureCliCredential
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more