azure-auth
A library for Azure authentication in Rust.
- Obtain tokens from a logged-in Azure CLI
- Obtain tokens for a managed identity - either from an Azure VM or Cloud Shell
- Obtain tokens directly using username/password or application ID and secret
Example
let authentication_uri = "https://login.windows.net/{tenant}";
let resource_uri = "https://vault.azure.net";
let auth_response = new
.authenticate
.await;
println!;