pub struct AzCliAuth;Expand description
Azure CLI-based authentication provider.
Implementations§
Source§impl AzCliAuth
impl AzCliAuth
Sourcepub async fn check_status() -> Result<AuthStatus, ClientError>
pub async fn check_status() -> Result<AuthStatus, ClientError>
Check the current Azure CLI login status.
Sourcepub async fn get_token(resource: &str) -> Result<String, ClientError>
pub async fn get_token(resource: &str) -> Result<String, ClientError>
Get an access token for the specified resource.
Sourcepub async fn login() -> Result<(), ClientError>
pub async fn login() -> Result<(), ClientError>
Run az login interactively.
Sourcepub async fn get_principal_id() -> Result<String, ClientError>
pub async fn get_principal_id() -> Result<String, ClientError>
Get the signed-in user’s principal (object) ID from Azure AD.
Sourcepub async fn logout() -> Result<(), ClientError>
pub async fn logout() -> Result<(), ClientError>
Run az logout.
Auto Trait Implementations§
impl Freeze for AzCliAuth
impl RefUnwindSafe for AzCliAuth
impl Send for AzCliAuth
impl Sync for AzCliAuth
impl Unpin for AzCliAuth
impl UnsafeUnpin for AzCliAuth
impl UnwindSafe for AzCliAuth
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