Skip to content

JeffSimmer/azure-auth-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = AzureCliAuthenticator::new()
    .authenticate(TokenRequestOptions::from_resource_uri(
        resource_uri,
        authentication_uri,
    ))
    .await;

println!("Auth response: {:?}\n", auth_response);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages