Azure SDK for Rust - Azure Identity Crate
Azure Identity crate for the unofficial Microsoft Azure SDK for Rust. This crate is part of a collection of crates: for more information please refer to https://github.com/azure/azure-sdk-for-rust. This crate provides mechanisms for several ways to authenticate against Azure
Several implementations of azure_core::auth::TokenCredential
trait are available:
- DefaultAzureCredential
- EnvironmentCredential
- ImdsManagedIdentityCredential
- AzureCliCredential
- AutoRefreshingTokenCredential
There are several examples available. The service examples mostly use AzureCliCredential
.
To authenticate using the client credential flow, you can do the following:
use client_credentials_flow;
use ;
use Url;
use env;
use Error;
async
The supported authentication flows are:
This crate also includes utilities for handling refresh tokens and accessing token credentials from many different sources.
A list of changes can be found in CHANGELOG.md;